From f221205015abb76995d60ddae8bb74ca958a9182 Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Wed, 28 Dec 2016 21:45:01 +0200 Subject: parse_tag: don't consume *end == ')' when called recursively This did not cause any problems, but it's nicer to guarantee that the return value is <= end. --- libass/ass_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass_parse.c b/libass/ass_parse.c index 0a25c64..5cd232f 100644 --- a/libass/ass_parse.c +++ b/libass/ass_parse.c @@ -318,7 +318,7 @@ char *parse_tag(ASS_Renderer *render_priv, char *p, char *end, double pwr) push_arg(args, &nargs, q, r); q = r; // The closing parenthesis could be missing. - if (*q == ')') + if (q != end) ++q; break; } -- cgit v1.2.3