mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Back out rev 1.5: the overflow condition is already handled elsewhere.
This commit is contained in:
parent
354ae80dd4
commit
42ceaa809f
1 changed files with 4 additions and 2 deletions
|
|
@ -85,8 +85,10 @@ _xpg4_setrunelocale(encoding)
|
|||
|
||||
if (!_PathLocale)
|
||||
return(EFAULT);
|
||||
(void) snprintf(name, sizeof name, "%s/%s/LC_CTYPE",
|
||||
_PathLocale, encoding);
|
||||
(void) strcpy(name, _PathLocale);
|
||||
(void) strcat(name, "/");
|
||||
(void) strcat(name, encoding);
|
||||
(void) strcat(name, "/LC_CTYPE");
|
||||
|
||||
if ((fp = fopen(name, "r")) == NULL)
|
||||
return(ENOENT);
|
||||
|
|
|
|||
Loading…
Reference in a new issue