]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Increase the buffer size to sort some user reports
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Wed, 4 Mar 2015 19:03:12 +0000 (20:03 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Wed, 4 Mar 2015 19:03:12 +0000 (20:03 +0100)
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.

siteuser.c
topsites.c

index 79c688a9634dfbe9be0b12727d9e19e655ce5d8f..f5edfc5b9f736965839ffe847b860fdbfd55e87b 100644 (file)
@@ -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];
index 96efd9e1d82e42bb53a69e6b58c68f7db30e3e6e..4a890b0db87809a0af768a8d6de4da58011728ca 100644 (file)
@@ -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];