rfc1123Time: increase buffer size for time string
authorJeff Garzik <jeff@garzik.org>
Sat, 9 Apr 2011 02:50:14 +0000 (22:50 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 9 Apr 2011 02:50:14 +0000 (22:50 -0400)
Make sure we can accomodate all possibilities.

rpc.cpp

diff --git a/rpc.cpp b/rpc.cpp
index a7b3b80..d527f9b 100644 (file)
--- a/rpc.cpp
+++ b/rpc.cpp
@@ -1486,7 +1486,7 @@ string HTTPPost(const string& strMsg, const map<string,string>& mapRequestHeader
 
 string rfc1123Time()
 {
-    char buffer[32];
+    char buffer[64];
     time_t now;
     time(&now);
     struct tm* now_gmt = gmtime(&now);