mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk libT) super-anal: 1024 was overkill here.
This commit is contained in:
parent
0209b783eb
commit
122a318d8f
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ add_time_header( struct evkeyvalq * headers, const char * key, time_t value )
|
|||
{
|
||||
/* According to RFC 2616 this must follow RFC 1123's date format,
|
||||
so use gmtime instead of localtime... */
|
||||
char buf[1024];
|
||||
char buf[128];
|
||||
struct tm tm = *gmtime( &value );
|
||||
strftime( buf, sizeof( buf ), "%a, %d %b %Y %H:%M:%S GMT", &tm );
|
||||
evhttp_add_header( headers, key, buf );
|
||||
|
|
Loading…
Reference in a new issue