diff options
author | mrg <mrg@NetBSD.org> | 2019-02-03 10:48:46 +0000 |
---|---|---|
committer | mrg <mrg@NetBSD.org> | 2019-02-03 10:48:46 +0000 |
commit | 6cc626ca663340efc734eaf0822b2948251aae43 (patch) | |
tree | 35be74e990d203f369ca2e3bbb0fc73c587672db /hack | |
parent | 0c1b99fd2eee255ee80301b9ad0a88c9daae9f9d (diff) | |
download | bsdgames-darwin-6cc626ca663340efc734eaf0822b2948251aae43.tar.gz bsdgames-darwin-6cc626ca663340efc734eaf0822b2948251aae43.tar.zst bsdgames-darwin-6cc626ca663340efc734eaf0822b2948251aae43.zip |
- enlarge buffer to avoid snprintf() truncation
Diffstat (limited to 'hack')
-rw-r--r-- | hack/hack.unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hack/hack.unix.c b/hack/hack.unix.c index dd4c6799..811aedc1 100644 --- a/hack/hack.unix.c +++ b/hack/hack.unix.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.unix.c,v 1.17 2011/09/01 07:18:50 plunky Exp $ */ +/* $NetBSD: hack.unix.c,v 1.18 2019/02/03 10:48:46 mrg Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.unix.c,v 1.17 2011/09/01 07:18:50 plunky Exp $"); +__RCSID("$NetBSD: hack.unix.c,v 1.18 2019/02/03 10:48:46 mrg Exp $"); #endif /* not lint */ /* This file collects some Unix dependencies; hack.pager.c contains some more */ @@ -123,7 +123,7 @@ getyear(void) char * getdatestr(void) { - static char datestr[7]; + static char datestr[32]; struct tm *lt = getlt(); (void) snprintf(datestr, sizeof(datestr), "%02d%02d%02d", |