diff options
-rw-r--r-- | src/lib/libc/string/strftime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libc/string/strftime.c b/src/lib/libc/string/strftime.c index c1d1e95ffd..21be6667b4 100644 --- a/src/lib/libc/string/strftime.c +++ b/src/lib/libc/string/strftime.c | |||
@@ -32,7 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char *rcsid = "$OpenBSD: strftime.c,v 1.6 1996/08/19 08:34:18 tholo Exp $"; | 35 | static char *rcsid = "$OpenBSD: strftime.c,v 1.7 1996/10/28 16:53:28 tholo Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <sys/localedef.h> | 38 | #include <sys/localedef.h> |
@@ -257,7 +257,8 @@ _fmt(format, t) | |||
257 | return(0); | 257 | return(0); |
258 | continue; | 258 | continue; |
259 | case 'Z': | 259 | case 'Z': |
260 | if (t->tm_zone && !_add(t->tm_zone)) | 260 | if (tzname[t->tm_isdst ? 1 : 0] && |
261 | !_add(tzname[t->tm_isdst ? 1 : 0])) | ||
261 | return(0); | 262 | return(0); |
262 | continue; | 263 | continue; |
263 | case '%': | 264 | case '%': |