Convert more cases of list-walking to use self-assigned memory for the list-item
[exim.git] / src / src / route.c
index a5f5feeaf9c7097d503104374003993fb19caa7b..1d87b079a7b3c6a2ecd552092581a5c71618205d 100644 (file)
@@ -607,14 +607,13 @@ gid_t gid = 0;            /* For picky compilers */
 BOOL ugid_set = FALSE;
 const uschar *listptr;
 uschar *check;
-uschar buffer[1024];
 
 if (!s) return OK;
 
 DEBUG(D_route) debug_printf("checking require_files\n");
 
 listptr = s;
-while ((check = string_nextinlist(&listptr, &sep, buffer, sizeof(buffer))))
+while ((check = string_nextinlist(&listptr, &sep, NULL, 0)))
   {
   int rc;
   int eacces_code = 0;