diff options
| author | Jacques Vidrine <nectar@FreeBSD.org> | 2003-05-01 19:03:14 +0000 |
|---|---|---|
| committer | Jacques Vidrine <nectar@FreeBSD.org> | 2003-05-01 19:03:14 +0000 |
| commit | d05090827f0e5b95cc7d2bcdde8b3b4e0f986241 (patch) | |
| tree | 736595316c161b3d1ae559f331feaa6ba12b500e /lib/libc/locale/setlocale.c | |
| parent | 9501b60383bd4123b406e604b1fbe8108778c634 (diff) | |
Notes
Diffstat (limited to 'lib/libc/locale/setlocale.c')
| -rw-r--r-- | lib/libc/locale/setlocale.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index ca550aead86f..525ca8ff6f23 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -41,7 +41,6 @@ static char sccsid[] = "@(#)setlocale.c 8.1 (Berkeley) 7/4/93"; #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include "namespace.h" #include <sys/types.h> #include <sys/stat.h> #include <errno.h> @@ -51,7 +50,6 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <string.h> #include <unistd.h> -#include "un-namespace.h" #include "collate.h" #include "lmonetary.h" /* for __monetary_load_locale() */ #include "lnumeric.h" /* for __numeric_load_locale() */ @@ -182,7 +180,7 @@ setlocale(category, locale) errno = EINVAL; return (NULL); } - (void)_strlcpy(new_categories[i], locale, + (void)strlcpy(new_categories[i], locale, len + 1); i++; locale = r; |
