Back out rev 1.5: the overflow condition is already handled elsewhere.
This commit is contained in:
parent
354ae80dd4
commit
42ceaa809f
@ -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 New Issue
Block a user