From 122a318d8fecf6fdd0761453ae71a57c488906c7 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 8 May 2009 17:30:14 +0000 Subject: [PATCH] (trunk libT) super-anal: 1024 was overkill here. --- libtransmission/rpc-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/rpc-server.c b/libtransmission/rpc-server.c index c130893a1..af52f967e 100644 --- a/libtransmission/rpc-server.c +++ b/libtransmission/rpc-server.c @@ -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 );