From 3fd6f04e520872efa19ba2a9fd22b324d8104f2e Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 6 Nov 2018 21:57:23 +0000 Subject: ensure output buffer is large enough to not be truncated --- utils/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/time.c b/utils/time.c index 71fa30fe3..e1f76ca54 100644 --- a/utils/time.c +++ b/utils/time.c @@ -109,7 +109,7 @@ static const char * const months[NSC_TIME_MONTH__COUNT] = { /* exported interface documented in utils/time.h */ const char *rfc1123_date(time_t t) { - static char ret[30]; + static char ret[31]; struct tm *tm = gmtime(&t); -- cgit v1.2.3