]> git.pld-linux.org Git - packages/webalizer.git/blame - webalizer-forwardcompat.patch
- up to 2.23.08 + current debian patches
[packages/webalizer.git] / webalizer-forwardcompat.patch
CommitLineData
62e4f83a
AM
1--- webalizer-2.01-10/preserve.c~ 2001-10-24 08:22:42.000000000 +0200
2+++ webalizer-2.01-10/preserve.c 2010-11-05 08:51:42.005261759 +0100
3@@ -82,7 +82,7 @@
4
5 void get_history()
6 {
7- int i,numfields;
8+ int i, j = 0,numfields;
9 FILE *hist_fp;
10 char buffer[BUFSIZE];
11
12@@ -101,8 +101,11 @@
13 if (verbose>1) printf("%s %s\n",msg_get_hist,hist_fname);
14 while ((fgets(buffer,BUFSIZE,hist_fp)) != NULL)
15 {
16+ if (buffer[0]=='#') { continue; } /* skip comments */
17+ j++;
18+
19 i = atoi(buffer) -1;
20- if (i>11)
21+ if (i>11 || j > 12)
22 {
23 if (verbose)
24 fprintf(stderr,"%s (mth=%d)\n",msg_bad_hist,i+1);
This page took 0.096457 seconds and 4 git commands to generate.