The patch in util.c fixes a segmentation fault on amd64 while generating
index.html.
Giovanni
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/sarg/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile 15 Sep 2007 20:38:26 -0000 1.8
+++ Makefile 8 Jan 2008 06:47:47 -0000
@@ -3,7 +3,7 @@
COMMENT= Squid Analysis Report Generator
DISTNAME= sarg-2.2.3.1
-PKGNAME= ${DISTNAME}p0
+PKGNAME= ${DISTNAME}p1
CATEGORIES= www
HOMEPAGE= http://sarg.sourceforge.net/
Index: patches/patch-util_c
===================================================================
RCS file: patches/patch-util_c
diff -N patches/patch-util_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-util_c 8 Jan 2008 06:47:47 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+--- util.c.orig Tue Jan 8 07:40:36 2008
++++ util.c Tue Jan 8 07:41:43 2008
+@@ -414,7 +414,7 @@ char *fixnum(long long int value, int n)
+ char num[MAXIMO];
+ char buf[MAXIMO * 2];
+ char *pbuf;
+- char ret[MAXIMO * 2];
++ static char ret[MAXIMO * 2];
+ char *pret;
+ register int i, j, k;
+ static char abbrev[30];
+@@ -507,7 +507,7 @@ char *fixnum2(long long int value, int n)
+ char num[MAXIMO];
+ char buf[MAXIMO * 2];
+ char *pbuf;
+- char ret[MAXIMO * 2];
++ static char ret[MAXIMO * 2];
+ char *pret;
+ register int i, j, k;
+ static char abbrev[30];