/*
- * $Id: cache_cf.cc,v 1.420 2002/10/17 02:11:23 hno Exp $
+ * $Id: cache_cf.cc,v 1.421 2002/11/15 13:09:31 hno Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
fromFile = 0;
goto strtok_again;
} else {
+ char *t2, *t3;
t = buf;
/* skip leading and trailing white space */
t += strspn(buf, w_space);
- t[strcspn(t, w_space)] = '\0';
+ t2 = t + strcspn(t, w_space);
+ t3 = t2 + strspn(t2, w_space);
+ while (*t3 && *t3 != '#') {
+ t2 = t3 + strcspn(t3, w_space);
+ t3 = t2 + strspn(t2, w_space);
+ }
+ *t2 = '\0';
/* skip comments */
if (*t == '#')
goto strtok_again;