e intl - fix string buffer length size

this intl code was broken using sizeof a pointer (sizef char *) vs
size of the actual buffer used.

@fix
This commit is contained in:
Carsten Haitzler 2016-04-12 14:22:20 +09:00
parent 48fbfa2908
commit 01e53356f8
1 changed files with 1 additions and 2 deletions

View File

@ -536,8 +536,7 @@ _e_intl_locale_alias_get(const char *language)
{
Eina_Hash *alias_hash;
char *alias;
char llbuf[256];
char *lower_language = llbuf;
char lower_language[256];
if ((!language) || (!strncmp(language, "POSIX", strlen("POSIX"))))
return strdup("C");