discomfitor pushed a commit to branch enlightenment-0.22.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=29ad9c85d9e3923c724ff4fdf8c6e5b2a1e10390

commit 29ad9c85d9e3923c724ff4fdf8c6e5b2a1e10390
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Nov 6 08:34:24 2017 -0500

    add field width limits to all fscanf params in e_intlc.
    
    fix T6316
---
 src/bin/e_intl.c | 4 ++--
 1 file 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);

-- 


Reply via email to