1
0
Fork 0
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:
Charles Kerr 2009-05-08 17:30:14 +00:00
parent 0209b783eb
commit 122a318d8f

View file

@ -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 );