summaryrefslogtreecommitdiff
path: root/src/view/detail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/detail.c')
-rw-r--r--src/view/detail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/detail.c b/src/view/detail.c
index 59d77a5..851450f 100644
--- a/src/view/detail.c
+++ b/src/view/detail.c
@@ -618,7 +618,7 @@ static void _get_place_title(const char *title, char *str, int size)
char buf[64], s[64];
char *city, *country, *tmp;
- strcpy(buf, title);
+ snprintf(buf, sizeof(buf), "%s", title);
city = strtok_r(buf, "/", &tmp);
country = strtok_r(tmp, "", &tmp);