mirror of
https://github.com/tmux/tmux.git
synced 2025-09-07 01:56:58 +00:00
Allow attributes to have only two parameters, from Tim Culverhouse.
This commit is contained in:
@ -137,7 +137,9 @@ sixel_parse_attributes(struct sixel_image *si, const char *cp, const char *end)
|
|||||||
if (endptr == last || *endptr != ';')
|
if (endptr == last || *endptr != ';')
|
||||||
return (last);
|
return (last);
|
||||||
strtoul(endptr + 1, &endptr, 10);
|
strtoul(endptr + 1, &endptr, 10);
|
||||||
if (endptr == last || *endptr != ';') {
|
if (endptr == last)
|
||||||
|
return (last);
|
||||||
|
if (*endptr != ';') {
|
||||||
log_debug("%s: missing ;", __func__);
|
log_debug("%s: missing ;", __func__);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user