summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/icon.h2
-rw-r--r--src/icon.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/inc/icon.h b/inc/icon.h
index ef34100..028de61 100644
--- a/inc/icon.h
+++ b/inc/icon.h
@@ -29,6 +29,8 @@
#define MAX_NOTI_ICONS_PORT 5
#define MAX_NOTI_ICONS_LAND 11
+#define SIGNAL_SIZE 32
+
enum {
ICON_STATE_HIDDEN = 0,
ICON_STATE_SHOWN
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");