[Mplayer-cvslog] CVS: main cfgparser.c,1.61,1.62 m_option.c,1.3,1.4

Arpi of Ize arpi at mplayerhq.hu
Fri Dec 6 18:12:07 CET 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv25882

Modified Files:
	cfgparser.c m_option.c 
Log Message:
fixed 'mplayer -nosound xxx' sig11 if configfile have string list options
(actually there was one dword less allocated... and so got corrupted)


Index: cfgparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/cfgparser.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- cfgparser.c	12 Nov 2002 01:56:21 -0000	1.61
+++ cfgparser.c	6 Dec 2002 17:11:50 -0000	1.62
@@ -647,7 +647,7 @@
 			    goto out;
 			  }
 			  ret = 1;
-			  res = malloc((n+1)*sizeof(char*));
+			  res = malloc((n+2)*sizeof(char*));
 			  ptr = param;
 			  n = 0;
 //			  while(ptr[0] != '\0') {

Index: m_option.c
===================================================================
RCS file: /cvsroot/mplayer/main/m_option.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- m_option.c	24 Nov 2002 01:03:16 -0000	1.3
+++ m_option.c	6 Dec 2002 17:11:50 -0000	1.4
@@ -498,7 +498,7 @@
 
   if(!dst) return 1;
 
-  res = malloc((n+1)*sizeof(char*));
+  res = malloc((n+2)*sizeof(char*));
   ptr = param;
   n = 0;
 




More information about the MPlayer-cvslog mailing list