From 7d5cb1920ec46ec1237bed27bfa89735ab340219 Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Wed, 4 Mar 2015 20:03:12 +0100 Subject: [PATCH] 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. --- siteuser.c | 2 +- topsites.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/siteuser.c b/siteuser.c index 79c688a..f5edfc5 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 96efd9e..4a890b0 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]; -- 2.47.2