mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
Sligtly modify previous out-of-bounds fix: just break instead of
return(NULL) for upward compatibility with more LC_* categories may be implemented in future.
This commit is contained in:
parent
5fc5c0cd3b
commit
4e7b46d8e2
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ setlocale(category, locale)
|
|||
return (NULL); /* Hmm, just slashes... */
|
||||
do {
|
||||
if (i == _LC_LAST)
|
||||
return(NULL); /* Too many slashes... */
|
||||
break; /* Too many slashes... */
|
||||
len = r - locale > ENCODING_LEN ? ENCODING_LEN : r - locale;
|
||||
(void)strlcpy(new_categories[i], locale, len + 1);
|
||||
i++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue