Back out rev 1.5: the overflow condition is already handled elsewhere.

This commit is contained in:
Joerg Wunsch 1996-12-22 15:48:06 +00:00
parent 354ae80dd4
commit 42ceaa809f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20810

View File

@ -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);