- while ((s = string_nextinlist(&list, &sep, buffer, sizeof(buffer))))
- if (!(s = expand_string(s)))
+ if (*remove_headers)
+ g = string_cat(NULL, *remove_headers);
+
+ while ((s = string_nextinlist(&list, &sep, NULL, 0)))
+ if (!(s = expand_string(t = s)))