summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1997-02-06 08:31:42 +0000
committerpst <pst@FreeBSD.org>1997-02-06 08:31:42 +0000
commitb7c9a718d55bb2dfd777c2f469f9a99c4cceae19 (patch)
tree1914f3df952dd265a7b170e8d0367e31ef6c4842 /lib/libc
parent050fcc849fb1e4ebb2d8b7c84449e4152304b2fd (diff)
downloadFreeBSD-src-b7c9a718d55bb2dfd777c2f469f9a99c4cceae19.zip
FreeBSD-src-b7c9a718d55bb2dfd777c2f469f9a99c4cceae19.tar.gz
Fix yet another setlocale() bug.
Submitted by: Wojtek Pilorz <wpilorz@celebris.bdk.lublin.pl>
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/setlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c
index 0a4bbc9..686e36d 100644
--- a/lib/libc/locale/setlocale.c
+++ b/lib/libc/locale/setlocale.c
@@ -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 == '/')
OpenPOWER on IntegriCloud