discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=2dfc64e22024a6621da444c0d90cc24eabc9e43f

commit 2dfc64e22024a6621da444c0d90cc24eabc9e43f
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Apr 12 16:31:32 2016 +0900

    e intel - fix number 2
    
    so the crazieness in e+intl was because of eina_str_tolower()
    silliness... so work with it and another patch to follow on from
    01e53356f8dce887254f1deeabc825a5c597fd7a ...
    
    @fix
---
 src/bin/e_intl.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_intl.c b/src/bin/e_intl.c
index d8c7ec8..a4f3de8 100644
--- a/src/bin/e_intl.c
+++ b/src/bin/e_intl.c
@@ -536,7 +536,8 @@ _e_intl_locale_alias_get(const char *language)
 {
    Eina_Hash *alias_hash;
    char *alias;
-   char lower_language[256];
+   char lbuf[256];
+   char *lower_language = lbuf;
 
    if ((!language) || (!strncmp(language, "POSIX", strlen("POSIX"))))
      return strdup("C");
@@ -545,8 +546,8 @@ _e_intl_locale_alias_get(const char *language)
    if (!alias_hash) /* No alias file available */
      return strdup(language);
 
-   strncpy(lower_language, language, sizeof(lower_language) - 1);
-   lower_language[sizeof(lower_language) - 1] = '\0';
+   strncpy(lbuf, language, sizeof(lbuf) - 1);
+   lbuf[sizeof(lbuf) - 1] = '\0';
    eina_str_tolower(&lower_language);
    alias = eina_hash_find(alias_hash, lower_language);
 

-- 


Reply via email to