[MPlayer-cvslog] r20738 - trunk/libass/ass_library.c
eugeni
subversion at mplayerhq.hu
Mon Nov 6 21:09:28 CET 2006
Author: eugeni
Date: Mon Nov 6 21:09:28 2006
New Revision: 20738
Modified:
trunk/libass/ass_library.c
Log:
Bugfix: when copying ass_force_style_list, ending 0 was left out.
Modified: trunk/libass/ass_library.c
==============================================================================
--- trunk/libass/ass_library.c (original)
+++ trunk/libass/ass_library.c Mon Nov 6 21:09:28 2006
@@ -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;
}
More information about the MPlayer-cvslog
mailing list