mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
Bugfix: when copying ass_force_style_list, ending 0 was left out.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20738 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4e960189e8
commit
ff4a1ad4a9
@ -66,7 +66,8 @@ void ass_set_style_overrides(ass_library_t* priv, char** list)
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user