summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-02-14 17:22:53 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-14 17:24:39 +0900
commit0a26ea3594f216d489cd4f844ac9b84f752953c6 (patch)
tree6a2fed906b52fae8d67b3cb415f1eaa46d4ac2ed /src/bin
parentf80189c3435ae4b44aed626ce08682e19e349ada (diff)
elementary value provider: replace sprintf() with snprintf()
Avoid vulerable function usage in the test code
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/elementary/test_efl_gfx_vg_value_provider.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/elementary/test_efl_gfx_vg_value_provider.c b/src/bin/elementary/test_efl_gfx_vg_value_provider.c
index d7c3af8a4a..2b5c9ee864 100644
--- a/src/bin/elementary/test_efl_gfx_vg_value_provider.c
+++ b/src/bin/elementary/test_efl_gfx_vg_value_provider.c
@@ -280,17 +280,17 @@ void values_input(Eo* box, const char* type)
280 char text[2][2]; 280 char text[2][2];
281 if (!strcmp(type, "TrPosition")) 281 if (!strcmp(type, "TrPosition"))
282 { 282 {
283 sprintf(text[0], "X"); 283 snprintf(text[0], sizeof(text[0]), "X");
284 sprintf(text[1], "Y"); 284 snprintf(text[1], sizeof(text[1]), "Y");
285 } 285 }
286 else if (!strcmp(type, "TrScale")) 286 else if (!strcmp(type, "TrScale"))
287 { 287 {
288 sprintf(text[0], "W"); 288 snprintf(text[0], sizeof(text[0]), "W");
289 sprintf(text[1], "H"); 289 snprintf(text[1], sizeof(text[1]), "H");
290 } 290 }
291 else if (!strcmp(type, "TrRotation")) 291 else if (!strcmp(type, "TrRotation"))
292 { 292 {
293 sprintf(text[0], "R"); 293 snprintf(text[0], sizeof(text[0]), "R");
294 } 294 }
295 295
296 int value_cnt = strstr(type, "Rotation") ? 1 : 2; 296 int value_cnt = strstr(type, "Rotation") ? 1 : 2;