summaryrefslogtreecommitdiff
path: root/src/grid/grid_gallery.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/grid/grid_gallery.c')
-rw-r--r--src/grid/grid_gallery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grid/grid_gallery.c b/src/grid/grid_gallery.c
index eb39a7b..8ea9d6d 100644
--- a/src/grid/grid_gallery.c
+++ b/src/grid/grid_gallery.c
@@ -129,7 +129,7 @@ static char *_place_text_get(void *data, Evas_Object *obj, const char *part)
snprintf(buf, sizeof(buf), "%d", cnt);
return strdup(buf);
} else {
- strcpy(buf, gi->name);
+ snprintf(buf, sizeof(buf), "%s", gi->name);
city = strtok_r(buf, "/", &tmp);
country = strtok_r(tmp, "", &tmp);