diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-02-07 13:05:51 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-02-07 13:05:51 +0000 |
commit | b1950360870ae19b10486a9380b7d1d1adedc80c (patch) | |
tree | 2e77b29036646227c8e643e453b619438a577aee /lib/libc | |
parent | 15733158104afc69a3dc2833438fd9b11932e33d (diff) |
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdtime/strftime.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c index 7e624c5f42c9..8329c5adf3da 100644 --- a/lib/libc/stdtime/strftime.c +++ b/lib/libc/stdtime/strftime.c @@ -42,6 +42,7 @@ static const char sccsid[] = "@(#)strftime.c 5.4 (Berkeley) 3/14/89"; #include <fcntl.h> #include <locale.h> #include <sys/stat.h> +#include "setlocale.h" struct lc_time_T { const char * mon[12]; @@ -461,8 +462,6 @@ _add(str, pt, ptlim) return pt; } -extern char *_PathLocale; - int __time_load_locale(const char *name) { @@ -509,7 +508,7 @@ __time_load_locale(const char *name) if (!_PathLocale) goto no_locale; - /* Range checking not needed, name has fixed size */ + /* Range checking not needed, 'name' size is limited */ strcpy(filename, _PathLocale); strcat(filename, "/"); strcat(filename, name); |