Convert more cases of list-walking to use self-assigned memory for the list-item
[exim.git] / src / src / moan.c
index 4e7fbd607bc98f92d73837d3a99a788f85f5e848..bf5483ce38b620c4410ce59794ef9737fc94d00b 100644 (file)
@@ -718,7 +718,6 @@ moan_check_errorcopy(uschar *recipient)
 uschar *item, *localpart, *domain;
 const uschar *listptr = errors_copy;
 uschar *yield = NULL;
-uschar buffer[256];
 int sep = 0;
 int llen;
 
@@ -734,7 +733,7 @@ llen = domain++ - recipient;
 
 /* Scan through the configured items */
 
-while ((item = string_nextinlist(&listptr, &sep, buffer, sizeof(buffer))))
+while ((item = string_nextinlist(&listptr, &sep, NULL, 0)))
   {
   const uschar *newaddress = item;
   const uschar *pattern = string_dequote(&newaddress);