gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / web / webalizer / patches / webalizer-2.21-02-underrun.patch
blob455db5a3891d15ecd387f6234455268a8f614414
1 --- webalizer-2.21-02/webalizer.c 2009-01-13 06:35:54.000000000 +0100
2 +++ webalizer-2.21-02/webalizer.c.underrun 2009-03-29 14:16:21.000000000 +0200
3 @@ -744,10 +744,16 @@
4 rec_sec =atoi(&log_rec.datetime[19]); /* get second number */
6 /* Kludge for Netscape server time (0-24?) error */
7 - if (rec_hour>23) rec_hour=0;
8 + if (rec_hour > 23)
9 + rec_hour=0;
10 + /* Handle leap seconds (AC 2004) */
11 + if (rec_sec > 59 && rec_sec < 62) /* 23:59:60/61 exist */
12 + rec_sec = 59;
14 /* minimal sanity check on date */
15 - if ((i>=12)||(rec_min>59)||(rec_sec>60)||(rec_year<1990))
16 + if ( i >= 12 || rec_min < 0 || rec_min > 59 ||
17 + rec_sec < 0 || rec_sec > 59 || rec_year<1990 ||
18 + rec_day < 0)
20 total_bad++; /* if a bad date, bump counter */
21 if (verbose)