Mercurial > mplayer.hg
changeset 20722:2edba6772316
Bugfix: when copying ass_force_style_list, ending 0 was left out.
author | eugeni |
---|---|
date | Mon, 06 Nov 2006 20:09:28 +0000 |
parents | d3343db1d7ff |
children | 18ba5bc68f40 |
files | libass/ass_library.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_library.c Mon Nov 06 18:05:38 2006 +0000 +++ b/libass/ass_library.c Mon Nov 06 20:09:28 2006 +0000 @@ -66,7 +66,8 @@ for (p = list, cnt = 0; *p; ++p, ++cnt) {} - priv->style_overrides = malloc(cnt * sizeof(char*)); + priv->style_overrides = malloc((cnt + 1) * sizeof(char*)); for (p = list, q = priv->style_overrides; *p; ++p, ++q) *q = strdup(*p); + priv->style_overrides[cnt] = NULL; }