]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: hno
authoramosjeffries <>
Tue, 26 Feb 2008 06:40:55 +0000 (06:40 +0000)
committeramosjeffries <>
Tue, 26 Feb 2008 06:40:55 +0000 (06:40 +0000)
Use our own strwordtok instead of strtok_r. Not only is it portable, but also understands quoting and escaping

src/cache_cf.cc

index 86f2bb9cfd6a759270454296bceb5e55679be530..50ae1b898ad9196a02a975ef463d7a1e6e0945d7 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.528.2.3 2008/02/25 23:26:10 amosjeffries Exp $
+ * $Id: cache_cf.cc,v 1.528.2.4 2008/02/25 23:40:55 amosjeffries Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -210,10 +210,10 @@ parseManyConfigFiles(char* files, int depth)
 {
     int error_count = 0;
     char* saveptr = NULL;
-    char* file = strtok_r(tmp, w_space, &saveptr);
+    char* file = strwordtok(files, &saveptr);
     while (file != NULL) {
         error_count += parseOneConfigFile(file, depth);
-        file = strtok_r(tmp, w_space, &saveptr);
+        file = strwordtok(NULL, &saveptr);
     }
     return error_count;
 }