Fix truncation of items in headers_remove lists, this time in routers. Bug 1533
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 29 Jan 2015 17:42:47 +0000 (17:42 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Thu, 29 Jan 2015 17:42:47 +0000 (17:42 +0000)
src/src/routers/rf_get_munge_headers.c

index a4a13b04fe716471f235c15bc402702d8f4c75cd..3125f315e14e9e732d84d03ea8a61ab78948564d 100644 (file)
@@ -90,9 +90,8 @@ if (rblock->remove_headers)
   uschar * list = rblock->remove_headers;
   int sep = ':';
   uschar * s;
-  uschar buffer[128];
 
-  while ((s = string_nextinlist(&list, &sep, buffer, sizeof(buffer))))
+  while ((s = string_nextinlist(&list, &sep, NULL, 0)))
     if (!(s = expand_string(s)))
       {
       if (!expand_string_forcedfail)