Transform string_append_listele{,_n}() to proper expanding-string triplet interface
[exim.git] / src / src / readconf.c
index fd9657e0e763d0d3035fd22aa2bee32730fa57a5..eb44d1085b2ac7e4881804f8908c2141eb5ba275 100644 (file)
@@ -1899,9 +1899,13 @@ switch (type)
       const uschar * list = sptr;
       uschar * s;
       uschar * list_o = *str_target;
+      int size = 0, len = 0;
+
+      if (list_o)
+       size = (len = Ustrlen(list_o)) + 1;
 
       while ((s = string_nextinlist(&list, &sep_i, NULL, 0)))
-       list_o = string_append_listele(list_o, sep_o, s);
+       list_o = string_append_listele(list_o, &size, &len, sep_o, s);
       if (list_o)
        *str_target = string_copy_malloc(list_o);
       }