# HG changeset patch # User arpi # Date 1039194710 0 # Node ID 7a7980b874f5b59e246dda4c9621ad368c98f0b4 # Parent 099205debc9737625b93c56a7780122a9bd82246 fixed 'mplayer -nosound xxx' sig11 if configfile have string list options (actually there was one dword less allocated... and so got corrupted) diff -r 099205debc97 -r 7a7980b874f5 cfgparser.c --- 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') { diff -r 099205debc97 -r 7a7980b874f5 m_option.c --- 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;