On Wed, 18 Oct 2006 17:33:07 +0900
Mathieu Sauve-Frankel <[EMAIL PROTECTED]> wrote:

> 
> yeah.. here's the tarball :-D
> 
> -- 
> Mathieu Sauve-Frankel
> 

Cool toy but I had segmentation faults on 3.9 i386. After correcting the booboo 
all is fine.

/tmp $ diff -ur www/visitors/ /usr/ports/www/visitors/
diff -ur www/visitors/patches/patch-visitors_c 
/usr/ports/www/visitors/patches/patch-visitors_c
--- www/visitors/patches/patch-visitors_c       Fri Jan  6 22:15:58 2006
+++ /usr/ports/www/visitors/patches/patch-visitors_c    Wed Oct 18 19:28:08 2006
@@ -1,16 +1,15 @@
-$OpenBSD$
---- visitors.c.orig    Wed Oct 26 07:07:25 2005
-+++ visitors.c Fri Jan  6 16:15:45 2006
-@@ -1083,7 +1083,7 @@ int vi_process_visitors_per_day(struct v
+--- visitors.c.orig    Wed Oct 18 19:26:57 2006
++++ visitors.c Wed Oct 18 19:27:36 2006
+@@ -1257,7 +1257,7 @@
        agent_len = strlen(agent);
        date_len = strlen(date);
          h = djb_hash((unsigned char*) agent, agent_len);
 -        sprintf(buf, "%lu", h);
-+        sprintf(buf, sizeof(buf), "%lu", h);
++        snprintf(buf, sizeof(buf), "%lu", h);
          hash_len = strlen(buf);
        if (host_len+agent_len+date_len+4 > VI_LINE_MAX)
                return 0;
-@@ -2094,7 +2094,7 @@ void vi_print_hours_report(FILE *fp, str
+@@ -2349,7 +2349,7 @@
        Output->print_subtitle(fp, "Percentage of hits in every hour of the 
day");
        for (i = 0; i < 24; i++) {
                char buf[8];
Only in www/visitors/patches: patch-visitors_c.orig

Reply via email to