changeset 8384:7a7980b874f5

fixed 'mplayer -nosound xxx' sig11 if configfile have string list options (actually there was one dword less allocated... and so got corrupted)
author arpi
date Fri, 06 Dec 2002 17:11:50 +0000
parents 099205debc97
children 59231cab01f7
files cfgparser.c m_option.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cfgparser.c	Fri Dec 06 09:41:13 2002 +0000
+++ b/cfgparser.c	Fri Dec 06 17:11:50 2002 +0000
@@ -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') {
--- a/m_option.c	Fri Dec 06 09:41:13 2002 +0000
+++ b/m_option.c	Fri Dec 06 17:11:50 2002 +0000
@@ -498,7 +498,7 @@
 
   if(!dst) return 1;
 
-  res = malloc((n+1)*sizeof(char*));
+  res = malloc((n+2)*sizeof(char*));
   ptr = param;
   n = 0;