>From e2d160e2e235103af3e08b5bbbc451982bc0fed0 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Tue, 30 Mar 2010 10:45:06 +0200 Subject: [PATCH] Extend buffer size because line size is greater than 1024 chars Error shown on console UdpLite: InDatagrams: 0 NoPorts: 0 InErrors: 0 OutDatagrams: 0 RcvbufErrors: 0 SndbufErrors: 0 error parsing /proc/net/snmp: Success It is easy to check size of line which is necessary to check. 1151 Signed-off-by: Michal Simek --- statistics.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/statistics.c b/statistics.c index a878df8..51beb8a 100644 --- a/statistics.c +++ b/statistics.c @@ -291,7 +291,7 @@ struct tabtab *newtable(struct tabtab *tabs, char *title) void process_fd(FILE *f) { - char buf1[1024], buf2[1024]; + char buf1[2048], buf2[2048]; char *sp, *np, *p; while (fgets(buf1, sizeof buf1, f)) { int endflag; -- 1.5.5.1