summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehun Lim <jehun.lim@samsung.com>2015-10-14 01:48:38 (GMT)
committerJehun Lim <jehun.lim@samsung.com>2015-10-14 02:19:02 (GMT)
commitf99c5991a89dfd6b88370afff0d802f29aaffff7 (patch)
tree212d19f5b1e1844030ada4154e6db6592cd70174
parentc328cf7f266ee6385c7e42cb16cce7557a975ae7 (diff)
downloadair_mediahub-accepted/tizen/tv/20151014.093648.zip
air_mediahub-accepted/tizen/tv/20151014.093648.tar.gz
air_mediahub-accepted/tizen/tv/20151014.093648.tar.bz2
(prevent: 486267, 486268, 486269, 486279, 486280, 486281) Change-Id: I52736d3a43543fba5956a92e447805b97035f1fd Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
-rw-r--r--src/data/mediadata.c2
-rw-r--r--src/grid/grid_gallery.c2
-rw-r--r--src/view/detail.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/data/mediadata.c b/src/data/mediadata.c
index 3f68f37..524da10 100644
--- a/src/data/mediadata.c
+++ b/src/data/mediadata.c
@@ -259,7 +259,7 @@ static void _get_place_string(const char *src, char **city, char **country)
return;
}
- strcpy(str, src);
+ snprintf(str, sizeof(str), "%s", src);
p = strtok_r(str, "/", &tmp);
if (!p)
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);
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);