--------------------- PatchSet 2074 Date: 2001/04/24 07:42:14 Author: rbcollins Branch: generic_modules Tag: (none) Log: bugfix: peek_line shouldn't alter whitespace Members: src/cache_cf.c:1.18.4.23->1.18.4.24 Index: squid/src/cache_cf.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/cache_cf.c,v retrieving revision 1.18.4.23 retrieving revision 1.18.4.24 diff -u -r1.18.4.23 -r1.18.4.24 --- squid/src/cache_cf.c 23 Apr 2001 22:28:33 -0000 1.18.4.23 +++ squid/src/cache_cf.c 24 Apr 2001 07:42:14 -0000 1.18.4.24 @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.c,v 1.18.4.23 2001/04/23 22:28:33 rbcollins Exp $ + * $Id: cache_cf.c,v 1.18.4.24 2001/04/24 07:42:14 rbcollins Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -2928,10 +2928,11 @@ debug(3,8)("next token %s\n",token); /* back up strtok a step. Yummy */ if (strlen(token) != saved_len) + /* next symbol is not last sympbol */ *(token + strlen(token))=' '; - *(token-2) = saved; + current_token[strlen(current_token)-1] = saved; *(token-1) = ' '; - strtok(token-2,w_space); + strtok(current_token,w_space); return 1; }