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:
parent
a6a13ef880
commit
b6b0d266cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22328
@ -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 == '/')
|
||||
|
Loading…
Reference in New Issue
Block a user