mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-23 13:04:17 +00:00
rfc1123Time: increase buffer size for time string
Make sure we can accomodate all possibilities.
This commit is contained in:
parent
0a4cb86976
commit
d98beea894
2
rpc.cpp
2
rpc.cpp
@ -1486,7 +1486,7 @@ string HTTPPost(const string& strMsg, const map<string,string>& mapRequestHeader
|
|||||||
|
|
||||||
string rfc1123Time()
|
string rfc1123Time()
|
||||||
{
|
{
|
||||||
char buffer[32];
|
char buffer[64];
|
||||||
time_t now;
|
time_t now;
|
||||||
time(&now);
|
time(&now);
|
||||||
struct tm* now_gmt = gmtime(&now);
|
struct tm* now_gmt = gmtime(&now);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user