diff options
author | pixel <pixel> | 2007-02-07 04:50:48 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-02-07 04:50:48 +0000 |
commit | c5e2bbb73d1a0b8ae24cd8045883c6a15632ed17 (patch) | |
tree | a305ec0bbbd3c92fc7dbd3110cd12874108d4794 | |
parent | 5f80a14a20a65752906321b3fdce6eaa5fc6048d (diff) |
Small buffer fix.
-rw-r--r-- | lib/HttpServ.cc | 2 |
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 << |