Convert more cases of list-walking to use self-assigned memory for the list-item
[exim.git] / src / src / filter.c
index 59c08f882ea224bb8d125fc30bbfc7860c3c254b..3897ae0f997232f27a372489f6175b375bf2b694 100644 (file)
@@ -2007,11 +2007,9 @@ while (commands)
        else if (subtype == FALSE)
          {
          int sep = 0;
-         uschar *ss;
-         const uschar *list = s;
-         uschar buffer[128];
-         while ((ss = string_nextinlist(&list, &sep, buffer, sizeof(buffer)))
-                != NULL)
+         const uschar * list = s;
+
+         for (uschar * ss; ss = string_nextinlist(&list, &sep, NULL, 0); )
            header_remove(0, ss);
          }