From b72f857fb5b9bfe800daf6d08da85f4bff81ce1d Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 1 Dec 2018 16:49:50 +0000 Subject: Harden string-list handling --- src/src/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/src/string.c b/src/src/string.c index 332047460..2441f9b17 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -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 -- cgit v1.2.3