diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1997-02-08 14:16:11 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1997-02-08 14:16:11 +0000 |
| commit | 2cd42b9ff96a4de0364dab9ae87f3641ce23d33f (patch) | |
| tree | 47ab477fcc0a4900c75e202e8e20a0c79118e8b3 /lib/libc/stdtime | |
| parent | b8f0e2e3c7bec97d407f68a9c365e5d36b454dfb (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdtime')
| -rw-r--r-- | lib/libc/stdtime/strftime.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c index b2c8b42dfce1..332031b77a5d 100644 --- a/lib/libc/stdtime/strftime.c +++ b/lib/libc/stdtime/strftime.c @@ -17,7 +17,7 @@ #ifdef LIBC_RCS static const char rcsid[] = - "$Id: strftime.c,v 1.11.2.2 1996/12/29 11:01:36 joerg Exp $"; + "$Id: strftime.c,v 1.11.2.3 1997/02/05 23:22:13 joerg Exp $"; #endif #ifndef lint @@ -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); |
