diff options
| author | Paul Traina <pst@FreeBSD.org> | 1997-02-06 08:31:42 +0000 |
|---|---|---|
| committer | Paul Traina <pst@FreeBSD.org> | 1997-02-06 08:31:42 +0000 |
| commit | b6b0d266cd69d2d8bc8fbce4cb27e3dd764baeac (patch) | |
| tree | 1914f3df952dd265a7b170e8d0367e31ef6c4842 /lib/libc | |
| parent | a6a13ef880a28cbcdf2bb53b1950e679503637bb (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/locale/setlocale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index 0a4bbc96578d..686e36dc0e16 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 == '/') |
