From 6cc626ca663340efc734eaf0822b2948251aae43 Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 3 Feb 2019 10:48:46 +0000 Subject: - enlarge buffer to avoid snprintf() truncation --- hack/hack.unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hack') 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 #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", -- cgit v1.2.3-56-ge451