ensure output buffer is large enough to not be truncated
This commit is contained in:
parent
0bd66d4d04
commit
3fd6f04e52
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue