aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-11-06 08:34:24 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-11-07 10:39:17 -0500
commitdde4bafd7f015cf958df1da33be7dc04cfae46a9 (patch)
treea941bc559ed77af0643f136842d5730ef31de362
parente comp object - patch volume update case for propagating state signals (diff)
downloadenlightenment-dde4bafd7f015cf958df1da33be7dc04cfae46a9.tar.gz
add field width limits to all fscanf params in e_intlc.
-rw-r--r--src/bin/e_intl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/e_intl.c b/src/bin/e_intl.c
index 3cb7deaee..57198d925 100644
--- a/src/bin/e_intl.c
+++ b/src/bin/e_intl.c
@@ -585,7 +585,7 @@ _e_intl_locale_alias_hash_get(void)
char alias[4096], locale[4096];
/* read locale alias lines */
- while (fscanf(f, "%4090s %[^\n]\n", alias, locale) == 2)
+ while (fscanf(f, "%4095s %4095[^\n]\n", alias, locale) == 2)
{
/* skip comments */
if ((alias[0] == '!') || (alias[0] == '#'))
@@ -873,7 +873,7 @@ _e_intl_locale_system_locales_get(void)
if (output)
{
char line[32];
- while (fscanf(output, "%[^\n]\n", line) == 1)
+ while (fscanf(output, "%31[^\n]\n", line) == 1)
locales = eina_list_append(locales, strdup(line));
pclose(output);