diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1999-11-09 11:11:10 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1999-11-09 11:11:10 +0000 |
| commit | 7ed851339d5bffcf4f8d0cca11ca45fc05ef262f (patch) | |
| tree | a9b01aa947a5949cbc6c5f90ce329880b871f306 /lib/libc | |
| parent | 63bd792124c17fa5863b73c6170c625fe1db634b (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/locale/setlocale.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index 44d0dfee7ffa..179be54325fc 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -169,9 +169,11 @@ setlocale(category, locale) ++locale; while (*++r && *r != '/'); } while (*locale); - while (i < _LC_LAST) + while (i < _LC_LAST) { (void)strcpy(new_categories[i], new_categories[i-1]); + i++; + } } } |
