summaryrefslogtreecommitdiff
path: root/src/icon.c
diff options
context:
space:
mode:
authorRadoslaw Czerski <r.czerski@samsung.com>2016-04-12 15:49:42 +0200
committerRadoslaw Czerski <r.czerski@samsung.com>2016-04-12 15:49:42 +0200
commitd221f284155b2dd353dcf33876bc9396c09bec1c (patch)
tree4c90a60d9c01ef4d347d3a75416b17d388da4a18 /src/icon.c
parent13485a7307f3e26fff821cbebee8cfb0df7a0a6f (diff)
downloadindicator-win-d221f284155b2dd353dcf33876bc9396c09bec1c.tar.gz
indicator-win-d221f284155b2dd353dcf33876bc9396c09bec1c.tar.bz2
indicator-win-d221f284155b2dd353dcf33876bc9396c09bec1c.zip
icon: Use of vulnerable function fix.
sprintf -> snprintf Change-Id: I624c24e446a5a2504ffe1cf53481ac8ee23e1c43 Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
Diffstat (limited to 'src/icon.c')
-rw-r--r--src/icon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/icon.c b/src/icon.c
index 0fd83bb..7af3024 100644
--- a/src/icon.c
+++ b/src/icon.c
@@ -74,8 +74,9 @@ static Eina_Bool _animate_on_timer_cb(void *data)
Evas_Object *img_edje = elm_layout_edje_get(icon->img_obj.obj);
retv_if(!img_edje, ECORE_CALLBACK_CANCEL);
- char signal_to_emit[32] = {'\0',};
- sprintf(signal_to_emit,icon->signal_to_emit_prefix,icon->animation_state);
+ char signal_to_emit[SIGNAL_SIZE] = {'\0',};
+
+ snprintf(signal_to_emit, SIGNAL_SIZE, icon->signal_to_emit_prefix, icon->animation_state);
edje_object_signal_emit(img_edje, signal_to_emit,"prog");