[Mplayer-cvslog] CVS: main cfgparser.c,1.35,1.36
pl
pl at mplayer.dev.hu
Wed Dec 19 14:15:51 CET 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv24288
Modified Files:
cfgparser.c
Log Message:
missing 1 byte in array size
Index: cfgparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/cfgparser.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- cfgparser.c 17 Dec 2001 15:50:36 -0000 1.35
+++ cfgparser.c 19 Dec 2001 13:15:49 -0000 1.36
@@ -249,8 +249,8 @@
if (param == NULL)
goto err_missing_param;
- subparam = malloc(strlen(param));
- subopt = malloc(strlen(param));
+ subparam = malloc(strlen(param)+1);
+ subopt = malloc(strlen(param)+1);
subconf = conf[i].p;
for (subconf_optnr = 0; subconf[subconf_optnr].name != NULL; subconf_optnr++)
More information about the MPlayer-cvslog
mailing list