constification
[exim.git] / src / src / routers / rf_get_munge_headers.c
index a4a13b04fe716471f235c15bc402702d8f4c75cd..a6c039eb308374c8078f5f7037e7d7327d26ca27 100644 (file)
@@ -36,7 +36,7 @@ rf_get_munge_headers(address_item *addr, router_instance *rblock,
 
 if (rblock->extra_headers)
   {
-  uschar * list = rblock->extra_headers;
+  const uschar * list = rblock->extra_headers;
   int sep = '\n';
   uschar * s;
   int slen;
@@ -87,12 +87,11 @@ if (rblock->extra_headers)
 /* Expand items from colon-sep list separately, then build new list */
 if (rblock->remove_headers)
   {
-  uschar * list = rblock->remove_headers;
+  const 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)