aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-02-28 12:13:46 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-02-28 12:16:44 +0100
commit8f3188d42e63954be6d33713270701f36a9f7117 (patch)
treeb7082cd4c9b6eae4d818f7e035a52c526d221719 /src
parentecore_avahi: fix timeout to be relative from now. (diff)
downloadefl-8f3188d42e63954be6d33713270701f36a9f7117.tar.gz
examples/evas: Set a proper format string for fprintf
Instead of abusing the format string we should set it. Was made aware of this problme by chinmaya061 in https://phab.enlightenment.org/D585 @fix
Diffstat (limited to 'src')
-rw-r--r--src/examples/evas/evas-box.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/evas/evas-box.c b/src/examples/evas/evas-box.c
index c58298e1c5..160135dc53 100644
--- a/src/examples/evas/evas-box.c
+++ b/src/examples/evas/evas-box.c
@@ -108,7 +108,7 @@ _on_keydown(void *data EINA_UNUSED,
if (strcmp(ev->key, "h") == 0) /* print help */
{
- fprintf(stdout, commands);
+ fprintf(stdout, "%s", commands);
return;
}
@@ -361,7 +361,7 @@ main(void)
evas_object_image_border_center_fill_set(d.border, EVAS_BORDER_FILL_NONE);
evas_object_show(d.border);
- fprintf(stdout, commands);
+ fprintf(stdout, "%s", commands);
_canvas_resize_cb(d.ee);
ecore_main_loop_begin();