]> git.pld-linux.org Git - packages/squid.git/blob - squid-2.5.STABLE1-spaces.patch
4560a1f09fec829e1c76bce436d464f3 squid-2.5.STABLE1-acl_leak.patch
[packages/squid.git] / squid-2.5.STABLE1-spaces.patch
1 Index: squid/src/cache_cf.c
2 diff -c squid/src/cache_cf.c:1.396.2.10 squid/src/cache_cf.c:1.396.2.11
3 *** squid/src/cache_cf.c:1.396.2.10     Wed Oct 16 20:14:34 2002
4 --- squid/src/cache_cf.c        Thu Nov 14 13:14:17 2002
5 ***************
6 *** 2438,2447 ****
7         fromFile = 0;
8         goto strtok_again;
9       } else {
10         t = buf;
11         /* skip leading and trailing white space */
12         t += strspn(buf, w_space);
13 !       t[strcspn(t, w_space)] = '\0';
14         /* skip comments */
15         if (*t == '#')
16             goto strtok_again;
17 --- 2438,2454 ----
18         fromFile = 0;
19         goto strtok_again;
20       } else {
21 +       char *t2, *t3;
22         t = buf;
23         /* skip leading and trailing white space */
24         t += strspn(buf, w_space);
25 !       t2 = t + strcspn(t, w_space);
26 !       t3 = t2 + strspn(t2, w_space);
27 !       while (*t3 && *t3 != '#') {
28 !           t2 = t3 + strcspn(t3, w_space);
29 !           t3 = t2 + strspn(t2, w_space);
30 !       }
31 !       *t2 = '\0';
32         /* skip comments */
33         if (*t == '#')
34             goto strtok_again;
35 ***************
36 *** 2451,2454 ****
37         return t;
38       }
39   }
40
41 --- 2458,2460 ----
This page took 0.026892 seconds and 3 git commands to generate.