From a5545dbc9f576d8f324333942eda562f3b80beeb Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 1 Nov 2023 10:37:41 +0000 Subject: Allow attributes to have only two parameters, from Tim Culverhouse. --- image-sixel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'image-sixel.c') diff --git a/image-sixel.c b/image-sixel.c index 2958d20d..3396a22a 100644 --- a/image-sixel.c +++ b/image-sixel.c @@ -137,7 +137,9 @@ sixel_parse_attributes(struct sixel_image *si, const char *cp, const char *end) if (endptr == last || *endptr != ';') return (last); strtoul(endptr + 1, &endptr, 10); - if (endptr == last || *endptr != ';') { + if (endptr == last) + return (last); + if (*endptr != ';') { log_debug("%s: missing ;", __func__); return (NULL); } -- cgit v1.2.3