diff options
author | ache <ache@FreeBSD.org> | 1995-08-05 17:32:06 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-08-05 17:32:06 +0000 |
commit | 93a197827acd9c51555404741545204d026fed2c (patch) | |
tree | dd4e442e88438993983ee6e4e5619abe234aebc4 /lib | |
parent | 685c99c94e271967c6c50de944b3e59d3a6e0ce2 (diff) | |
download | FreeBSD-src-93a197827acd9c51555404741545204d026fed2c.zip FreeBSD-src-93a197827acd9c51555404741545204d026fed2c.tar.gz |
Fix cut&paste error: LC_COLLATE should be LC_TIME
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/locale/setlocale.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index 8066943..dc8157a 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -169,9 +169,9 @@ loadlocale(category) if (category == LC_TIME) { if (__time_load_locale(new_categories[LC_TIME]) < 0) return (NULL); - strcpy(current_categories[LC_COLLATE], - new_categories[LC_COLLATE]); - return (current_categories[LC_COLLATE]); + (void)strcpy(current_categories[LC_TIME], + new_categories[LC_TIME]); + return (current_categories[LC_TIME]); } if (!strcmp(new_categories[category], "C") || |