summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1995-12-30 08:16:41 +0000
committerderaadt <deraadt@openbsd.org>1995-12-30 08:16:41 +0000
commit987c9c10af1c01e40943f3ad8b92c33185c7baa8 (patch)
tree47f8b813ca5d914909c36c133d40914d20636ee8 /lib/libc
parentfrom netbsd: Removed unused CALL macro (diff)
downloadwireguard-openbsd-987c9c10af1c01e40943f3ad8b92c33185c7baa8.tar.xz
wireguard-openbsd-987c9c10af1c01e40943f3ad8b92c33185c7baa8.zip
from netbsd: Fixed %u to expand to a single digit
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/strftime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/string/strftime.c b/lib/libc/string/strftime.c
index fffa9ecbb08..b696a60e558 100644
--- a/lib/libc/string/strftime.c
+++ b/lib/libc/string/strftime.c
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strftime.c 5.11 (Berkeley) 2/24/91";*/
-static char *rcsid = "$Id: strftime.c,v 1.1.1.1 1995/10/18 08:42:22 deraadt Exp $";
+static char *rcsid = "$Id: strftime.c,v 1.2 1995/12/30 08:16:41 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/localedef.h>
@@ -202,7 +202,7 @@ _fmt(format, t)
return(0);
continue;
case 'u':
- if (!_conv(t->tm_wday ? t->tm_wday : 7, 2, '0'))
+ if (!_conv(t->tm_wday ? t->tm_wday : 7, 1, '0'))
return(0);
continue;
case 'V':