summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2005-03-02 12:25:52 +0000
committermillert <millert@openbsd.org>2005-03-02 12:25:52 +0000
commit6a2eea0309c0111715ea22edb626f6722da9b8fb (patch)
tree8e42cf976799f058882093da919c557d7c39cd1a /lib
parentFix typo that breaks compilation #ifndef __weak_alias; Francois Perrad (diff)
downloadwireguard-openbsd-6a2eea0309c0111715ea22edb626f6722da9b8fb.tar.xz
wireguard-openbsd-6a2eea0309c0111715ea22edb626f6722da9b8fb.zip
Explicitly leave room for the NUL byte in {wday,mon}_name; Francois Perrad
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/time/asctime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/time/asctime.c b/lib/libc/time/asctime.c
index c691da59499..312727c05eb 100644
--- a/lib/libc/time/asctime.c
+++ b/lib/libc/time/asctime.c
@@ -5,7 +5,7 @@
#if defined(LIBC_SCCS) && !defined(lint) && !defined(NOID)
static char elsieid[] = "@(#)asctime.c 7.22";
-static char rcsid[] = "$OpenBSD: asctime.c,v 1.9 2004/10/28 19:44:11 dhartmei Exp $";
+static char rcsid[] = "$OpenBSD: asctime.c,v 1.10 2005/03/02 12:25:52 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*LINTLIBRARY*/
@@ -60,10 +60,10 @@ register const struct tm * timeptr;
char * buf;
int bufsize;
{
- static const char wday_name[][3] = {
+ static const char wday_name[][4] = {
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
};
- static const char mon_name[][3] = {
+ static const char mon_name[][4] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};