From c5e2bbb73d1a0b8ae24cd8045883c6a15632ed17 Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 7 Feb 2007 04:50:48 +0000 Subject: Small buffer fix. --- lib/HttpServ.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 << -- cgit v1.2.3