From a3c6890f56d1ed8954ab6f36f5792c33e155f4d9 Mon Sep 17 00:00:00 2001 From: hno <> Date: Sat, 7 Sep 2002 21:02:24 +0000 Subject: [PATCH] Make parse_wordlist understand about quoted strings (via strwordtok). This allows the use of complex parameters to helpers and other similar things by quoting the words/arguments in a manner people are used to. --- src/cache_cf.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 3636aec801..9a01f11b00 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.412 2002/09/07 14:55:24 hno Exp $ + * $Id: cache_cf.cc,v 1.413 2002/09/07 15:02:24 hno Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -2155,7 +2155,8 @@ void parse_wordlist(wordlist ** list) { char *token; - while ((token = strtok(NULL, w_space))) + char *t = strtok(NULL, ""); + while ((token = strwordtok(NULL, &t))) wordlistAdd(list, token); } -- 2.47.2