Harden string-list handling
[exim.git] / src / src / string.c
index 332047460de282a3f0c68d20c577482ec2c981e3..2441f9b17a4c66df5783b166bf96f814556845c4 100644 (file)
@@ -921,7 +921,7 @@ if (sep <= 0)
   if (*s == '<' && (ispunct(s[1]) || iscntrl(s[1])))
     {
     sep = s[1];
-    s += 2;
+    if (*++s) ++s;
     while (isspace(*s) && *s != sep) s++;
     }
   else