summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_get_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_get_time.c')
-rw-r--r--src/http/ngx_http_get_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_get_time.c b/src/http/ngx_http_get_time.c
index 5885df00b..33b14c38c 100644
--- a/src/http/ngx_http_get_time.c
+++ b/src/http/ngx_http_get_time.c
@@ -9,5 +9,5 @@ ngx_http_get_time(char *buf, time_t t)
struct tm *tp;
tp = gmtime(&t);
- return strftime(buf, 31, "%a, %d %b %Y %H:%M:%S GMT", tp);
+ return strftime(buf, 30, "%a, %d %b %Y %H:%M:%S GMT", tp);
}