diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2016-12-28 21:45:01 +0200 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2016-12-29 00:37:38 +0200 |
commit | f221205015abb76995d60ddae8bb74ca958a9182 (patch) | |
tree | 86a235df36004ecb39471d9044a3432dac2c6149 /libass | |
parent | 3ebd1945b44327450fec3fdd164f591921c3f281 (diff) | |
download | libass-f221205015abb76995d60ddae8bb74ca958a9182.tar.bz2 libass-f221205015abb76995d60ddae8bb74ca958a9182.tar.xz |
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.
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |