ensure output buffer is large enough to not be truncated

This commit is contained in:
Vincent Sanders 2018-11-06 21:57:23 +00:00
parent 0bd66d4d04
commit 3fd6f04e52
1 changed files with 1 additions and 1 deletions

View File

@ -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);