From d01c62d62182d1291760fbdb7ed0244991d52b5e Mon Sep 17 00:00:00 2001 From: Timon Date: Tue, 28 Feb 2012 17:10:35 +0600 Subject: [PATCH] Fix buffer size for memcached stats answer Typical stats answer has ~1900 bytes length. $ memcached-tool localhost:11211 stats | wc -c 1863 But buffer for this answer was only 1024 bytes length. Signed-off-by: Florian Forster --- src/memcached.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memcached.c b/src/memcached.c index 348591fd..4c9e6adc 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -358,7 +358,7 @@ static void submit_gauge2 (const char *type, const char *type_inst, static int memcached_read (void) /* {{{ */ { - char buf[1024]; + char buf[4096]; char *fields[3]; char *ptr; char *line; -- 2.30.2