From: Frédéric Marchal Date: Fri, 25 Feb 2011 11:31:46 +0000 (+0000) Subject: Accept IPv6 addresses in realtime report X-Git-Tag: v2.3.2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bd733aa519f915cac91887f54a3d918b7d4a7c5;p=thirdparty%2Fsarg.git Accept IPv6 addresses in realtime report --- diff --git a/realtime.c b/realtime.c index 20c95c7..b357740 100755 --- a/realtime.c +++ b/realtime.c @@ -102,7 +102,7 @@ static int getdata(char *rec, FILE *ftmp) char typ[128]; char warea[MAXLEN]; char user[MAX_USER_LEN]; - char ip[25]; + char ip[45]; char *url; struct getwordstruct gwarea; @@ -193,7 +193,7 @@ static void datashow(const char *tmp) char typ[128]; char user[MAX_USER_LEN]; char u2[MAX_USER_LEN]; - char ip[25]; + char ip[45]; int url_len; int ourl_size=0; struct getwordstruct gwarea;