summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/HttpServ.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc
index a923c83..402c4a8 100644
--- a/lib/HttpServ.cc
+++ b/lib/HttpServ.cc
@@ -372,7 +372,7 @@ void ProcessRequest::SendRedirect(Handle * s) {
void ProcessRequest::SendHeads(Handle * s, const String & mime, const String & extra, time_t lm) {
time_t t = time(NULL);
struct tm * ft = gmtime(&t);
- char buf[1024];
+ char buf[1025];
strftime(buf, 1024, "%a, %d %b %Y %H:%M:%S GMT", ft);
*s << "HTTP/1.1 200 OK" << endhl <<
"Date: " << buf << endhl <<