]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/string.c
Fix development-testing induced crash on second use
[user/henk/code/exim.git] / src / src / string.c
index f216e5a86e01d759757ab69b147cf565c2c51001..0f657dccaebb16499a5e40f57ce656fb2977a1b7 100644 (file)
@@ -304,7 +304,7 @@ if (nonprintcount == 0) return s;
 /* Get a new block of store guaranteed big enough to hold the
 expanded string. */
 
-ss = store_get(length + nonprintcount * 4 + 1);
+ss = store_get(length + nonprintcount * 3 + 1);
 
 /* Copy everying, escaping non printers. */
 
@@ -998,7 +998,7 @@ if (list)
   new = string_cat(new, &sz, &off, &sep, 1);
   }
 
-while (sp = Ustrchr(ele, sep))
+while((sp = Ustrchr(ele, sep)))
   {
   new = string_cat(new, &sz, &off, ele, sp-ele+1);
   new = string_cat(new, &sz, &off, &sep, 1);