summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-20 08:46:45 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-04-20 12:30:21 +0200
commitdf16616febb21074033ed6e477518b87e100c3e7 (patch)
treef6265485328757b7b8d2836d663e57b6f94ae693
parent114412d5478fff07f6c2c7462cb33ed788662475 (diff)
exactness-inspect: do not use sprintf
there is not yet a CID for this, but we should probebly not do that. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D11731
-rw-r--r--src/bin/exactness/inspect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/exactness/inspect.c b/src/bin/exactness/inspect.c
index dcd55b890a..4e2e301536 100644
--- a/src/bin/exactness/inspect.c
+++ b/src/bin/exactness/inspect.c
@@ -318,7 +318,7 @@ _grp_text_get(void *data, Evas_Object *gl, const char *part EINA_UNUSED)
318 if (!compare) 318 if (!compare)
319 { 319 {
320 Exactness_Unit *unit = efl_key_data_get(gl, "unit"); 320 Exactness_Unit *unit = efl_key_data_get(gl, "unit");
321 sprintf(buf2, "Fonts directory: %s", unit->fonts_path ? unit->fonts_path : "None"); 321 snprintf(buf2, sizeof(buf2), "Fonts directory: %s", unit->fonts_path ? unit->fonts_path : "None");
322 } 322 }
323 else 323 else
324 { 324 {
@@ -326,7 +326,7 @@ _grp_text_get(void *data, Evas_Object *gl, const char *part EINA_UNUSED)
326 Eo *gl2 = eina_list_nth(_gls, 1); 326 Eo *gl2 = eina_list_nth(_gls, 1);
327 Exactness_Unit *unit1 = efl_key_data_get(gl1, "unit"); 327 Exactness_Unit *unit1 = efl_key_data_get(gl1, "unit");
328 Exactness_Unit *unit2 = efl_key_data_get(gl2, "unit"); 328 Exactness_Unit *unit2 = efl_key_data_get(gl2, "unit");
329 sprintf(buf2, "Fonts directory comparison: "LDIFF(%s)"/"RDIFF(%s), 329 snprintf(buf2, sizeof(buf2), "Fonts directory comparison: "LDIFF(%s)"/"RDIFF(%s),
330 unit1 ? unit1->fonts_path : "(NULL)", unit2 ? unit2->fonts_path : "(NULL)"); 330 unit1 ? unit1->fonts_path : "(NULL)", unit2 ? unit2->fonts_path : "(NULL)");
331 } 331 }
332 return strdup(buf2); 332 return strdup(buf2);