diff options
author | deraadt <> | 1995-12-30 08:16:41 +0000 |
---|---|---|
committer | deraadt <> | 1995-12-30 08:16:41 +0000 |
commit | e77dc5c4325c2c51ccef8c31a4371d86d66526c9 (patch) | |
tree | 0cbcf72689bc657d2e7f73e25371a2d470c26d2d | |
parent | 0ec9503a81eeeb5a23e8654cc0e76fca89ab163b (diff) | |
download | openbsd-e77dc5c4325c2c51ccef8c31a4371d86d66526c9.tar.gz openbsd-e77dc5c4325c2c51ccef8c31a4371d86d66526c9.tar.bz2 openbsd-e77dc5c4325c2c51ccef8c31a4371d86d66526c9.zip |
from netbsd: Fixed %u to expand to a single digit
-rw-r--r-- | src/lib/libc/string/strftime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/string/strftime.c b/src/lib/libc/string/strftime.c index fffa9ecbb0..b696a60e55 100644 --- a/src/lib/libc/string/strftime.c +++ b/src/lib/libc/string/strftime.c | |||
@@ -33,7 +33,7 @@ | |||
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | /*static char *sccsid = "from: @(#)strftime.c 5.11 (Berkeley) 2/24/91";*/ | 35 | /*static char *sccsid = "from: @(#)strftime.c 5.11 (Berkeley) 2/24/91";*/ |
36 | static char *rcsid = "$Id: strftime.c,v 1.1.1.1 1995/10/18 08:42:22 deraadt Exp $"; | 36 | static char *rcsid = "$Id: strftime.c,v 1.2 1995/12/30 08:16:41 deraadt Exp $"; |
37 | #endif /* LIBC_SCCS and not lint */ | 37 | #endif /* LIBC_SCCS and not lint */ |
38 | 38 | ||
39 | #include <sys/localedef.h> | 39 | #include <sys/localedef.h> |
@@ -202,7 +202,7 @@ _fmt(format, t) | |||
202 | return(0); | 202 | return(0); |
203 | continue; | 203 | continue; |
204 | case 'u': | 204 | case 'u': |
205 | if (!_conv(t->tm_wday ? t->tm_wday : 7, 2, '0')) | 205 | if (!_conv(t->tm_wday ? t->tm_wday : 7, 1, '0')) |
206 | return(0); | 206 | return(0); |
207 | continue; | 207 | continue; |
208 | case 'V': | 208 | case 'V': |