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
This commit is contained in:
Stefan Schmidt 2014-02-28 12:13:46 +01:00
parent 46361148b2
commit 0ca191a6f0
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ _on_keydown(void *data EINA_UNUSED,
if (strcmp(ev->key, "h") == 0) /* print help */ if (strcmp(ev->key, "h") == 0) /* print help */
{ {
fprintf(stdout, commands); fprintf(stdout, "%s", commands);
return; return;
} }
@ -361,7 +361,7 @@ main(void)
evas_object_image_border_center_fill_set(d.border, EVAS_BORDER_FILL_NONE); evas_object_image_border_center_fill_set(d.border, EVAS_BORDER_FILL_NONE);
evas_object_show(d.border); evas_object_show(d.border);
fprintf(stdout, commands); fprintf(stdout, "%s", commands);
_canvas_resize_cb(d.ee); _canvas_resize_cb(d.ee);
ecore_main_loop_begin(); ecore_main_loop_begin();