summaryrefslogtreecommitdiff
path: root/utils/time.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-11-06 21:57:23 +0000
committerVincent Sanders <vince@kyllikki.org>2018-11-06 21:57:23 +0000
commit3fd6f04e520872efa19ba2a9fd22b324d8104f2e (patch)
treeb701312a7eebd5f75ca669b82ae016e87313ba0b /utils/time.c
parent0bd66d4d040fdd5dc3894069720ba338541251cd (diff)
downloadnetsurf-3fd6f04e520872efa19ba2a9fd22b324d8104f2e.tar.gz
netsurf-3fd6f04e520872efa19ba2a9fd22b324d8104f2e.tar.bz2
ensure output buffer is large enough to not be truncated
Diffstat (limited to 'utils/time.c')
-rw-r--r--utils/time.c2
1 files changed, 1 insertions, 1 deletions
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);