From: Timon Date: Tue, 28 Feb 2012 11:10:35 +0000 (+0600) Subject: Fix buffer size for memcached stats answer X-Git-Tag: collectd-4.10.7~18 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d01c62d62182d1291760fbdb7ed0244991d52b5e;p=collectd.git 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 --- 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;