1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

Fix yet another setlocale() bug.

Submitted by:	Wojtek Pilorz <wpilorz@celebris.bdk.lublin.pl>
This commit is contained in:
Paul Traina 1997-02-06 08:31:42 +00:00
parent a6a13ef880
commit b6b0d266cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22328

View File

@ -159,7 +159,7 @@ setlocale(category, locale)
return (NULL); /* Hmm, just slashes... */
do {
len = r - locale > 31 ? 31 : r - locale;
(void)strncpy(new_categories[i++], locale, len);
(void)strncpy(new_categories[i], locale, len);
new_categories[i++][len] = 0;
locale = r;
while (*locale == '/')