aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2011-04-08 22:50:14 -0400
committerJeff Garzik <jgarzik@pobox.com>2011-04-08 22:50:14 -0400
commitd98beea894c82063362011bb7f44a09995fd6047 (patch)
treef77a4354434a6f47795eafc645921b8763b0ba66
parent0a4cb8697645b61f781421aa10cf3f7841f776e5 (diff)
rfc1123Time: increase buffer size for time string
Make sure we can accomodate all possibilities.
-rw-r--r--rpc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc.cpp b/rpc.cpp
index a7b3b80d93..d527f9b35a 100644
--- 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);