From: Frederic Marchal Date: Wed, 4 Mar 2015 19:03:12 +0000 (+0100) Subject: Increase the buffer size to sort some user reports X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=997a4328762024f4a21a33e3c26d354be8764589;p=thirdparty%2Fsarg.git Increase the buffer size to sort some user reports The buffer to prepare the sort command to sort the files required to build siteuser.html and sarg-sites was very small and was not big enough if the user ID was unusually long. --- diff --git a/siteuser.c b/siteuser.c index 3c584ca..a939d36 100644 --- a/siteuser.c +++ b/siteuser.c @@ -33,7 +33,7 @@ void siteuser(void) char *buf; char *ourl; - char csort[255]; + char csort[4096]; char general[MAXLEN]; char general2[MAXLEN]; char sites[MAXLEN]; diff --git a/topsites.c b/topsites.c index d599744..3777c7a 100644 --- a/topsites.c +++ b/topsites.c @@ -38,7 +38,7 @@ void topsites(void) char *buf; char *url; char *ourl=NULL; - char csort[255]; + char csort[4096]; char general[MAXLEN]; char general2[MAXLEN]; char general3[MAXLEN];