summaryrefslogtreecommitdiff
path: root/unsorted/evas/evas-images5.c
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2017-04-20 14:21:21 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-04-20 17:31:58 +0900
commitb847d3124b3ab6601759d22561036cbf6a3290f4 (patch)
treefb240ce3859023630edae52a5ef740025abaa481 /unsorted/evas/evas-images5.c
parentc4dae329e858d06cadeb014b7ba6de7e3a72a27c (diff)
examples/evas: Use printf instead of fprintf(stdout, ...)
Summary: Applies the correction purely mechanically using the following shell command-line: src/examples/evas$ grep -sr 'fprintf(stdout' . | cut -d: -f1 | uniq | \ xargs sed -i "s/fprintf(stdout/printf(/" This fixes a few warnings about lack of a format string: warning: format not a string literal and no format arguments [-Wformat-security] fprintf(stdout, commands); Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D4691
Diffstat (limited to 'unsorted/evas/evas-images5.c')
-rw-r--r--unsorted/evas/evas-images5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unsorted/evas/evas-images5.c b/unsorted/evas/evas-images5.c
index 036c8963..79808224 100644
--- a/unsorted/evas/evas-images5.c
+++ b/unsorted/evas/evas-images5.c
@@ -90,7 +90,7 @@ _on_keydown(void *data EINA_UNUSED,
90 fprintf(stderr, "Cannot save image to '%s' (flags '%s')\n", 90 fprintf(stderr, "Cannot save image to '%s' (flags '%s')\n",
91 file_path, quality_str); 91 file_path, quality_str);
92 else 92 else
93 fprintf(stdout, "Image saved to '%s' (flags '%s'), check it out with " 93 printf("Image saved to '%s' (flags '%s'), check it out with "
94 "an image viewer\n", file_path, quality_str); 94 "an image viewer\n", file_path, quality_str);
95 95
96 return; 96 return;
@@ -101,7 +101,7 @@ _on_keydown(void *data EINA_UNUSED,
101 Evas_Coord w, h; 101 Evas_Coord w, h;
102 102
103 evas_object_image_size_get(d.img, &w, &h); 103 evas_object_image_size_get(d.img, &w, &h);
104 fprintf(stdout, "Image has size set to: w=%d, h=%d\n", w, h); 104 printf("Image has size set to: w=%d, h=%d\n", w, h);
105 return; 105 return;
106 } 106 }
107 107
@@ -170,7 +170,7 @@ main(void)
170 } 170 }
171 else 171 else
172 { 172 {
173 fprintf(stdout, 173 printf(
174 "loaded image '%s' with succes! error string is \"%s\"\n", 174 "loaded image '%s' with succes! error string is \"%s\"\n",
175 img_path, evas_load_error_str(err)); 175 img_path, evas_load_error_str(err));
176 176