net-analyzer/sarg: Fix more compiler warnings (bug #645006).
authorJeroen Roovers <jer@gentoo.org>
Sat, 20 Jan 2018 13:58:42 +0000 (14:58 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sat, 20 Jan 2018 13:59:00 +0000 (14:59 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

net-analyzer/sarg/files/sarg-2.3.11-format.patch [new file with mode: 0644]
net-analyzer/sarg/sarg-2.3.11.ebuild

diff --git a/net-analyzer/sarg/files/sarg-2.3.11-format.patch b/net-analyzer/sarg/files/sarg-2.3.11-format.patch
new file mode 100644 (file)
index 0000000..f2dc7d3
--- /dev/null
@@ -0,0 +1,36 @@
+--- a/report.c
++++ b/report.c
+@@ -54,7 +54,7 @@
+       char accsmart[MAXLEN];
+       char crc2[MAXLEN/2 -1];
+       char siteind[MAX_TRUNCATED_URL];
+-      char arqtt[256];
++      char arqtt[MAX_USER_FNAME_LEN * 2 + MAXLEN + 10];
+       char *oldurltt=NULL;
+       char oldaccdiatt[11],oldacchoratt[9];
+       char tmp3[MAXLEN];
+--- a/index.c
++++ b/index.c
+@@ -89,9 +89,9 @@
+       char monthdir[MAXLEN];
+       char monthname1[9], monthname2[9];
+       char nmonth[30];
+-      char monthnum[10];
++      char monthnum[15];
+       char dayindex[MAXLEN];
+-      char daynum[10];
++      char daynum[15];
+       char title[80];
+       int yearsort[150];
+       int nyears;
+--- a/userinfo.c
++++ b/userinfo.c
+@@ -67,7 +67,7 @@
+       int skip;
+       int flen;
+       int count, clen;
+-      char cstr[9];
++      char cstr[10];
+       last=NULL;
+       for (group=first_user_group ; group ; group=group->next) {
index 33a65ab49a99819751a092703170d32ecc8cb9af..82677c354812077d7ffbab630d1c5ca647a412ec 100644 (file)
@@ -25,6 +25,7 @@ DOCS=( BETA-TESTERS CONTRIBUTORS DONATIONS README ChangeLog htaccess )
 PATCHES=(
        "${FILESDIR}"/${PN}-2.3.10-config.patch
        "${FILESDIR}"/${PN}-2.3.11-configure.patch
+       "${FILESDIR}"/${PN}-2.3.11-format.patch
 )
 
 src_prepare() {