]> 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:11:00 +0000 (20:11 +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 3c584ca5c87f5a58ccbbb5bd7228704c40fcec41..a939d36e406f7ab6e1b6d112ca290cde9b70fb20 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 d599744134a8b99b38aa45c7ac1b068434a2a32f..3777c7a716843899e9db0faaac67375e98c3de29 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];