1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00

fixed 'mplayer -nosound xxx' sig11 if configfile have string list options

(actually there was one dword less allocated... and so got corrupted)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8385 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-12-06 17:11:50 +00:00
parent 504e9aa82a
commit 228b8a0107
2 changed files with 2 additions and 2 deletions

View File

@ -647,7 +647,7 @@ static int config_read_option(m_config_t *config,config_t** conf_list, char *opt
goto out;
}
ret = 1;
res = malloc((n+1)*sizeof(char*));
res = malloc((n+2)*sizeof(char*));
ptr = param;
n = 0;
// while(ptr[0] != '\0') {

View File

@ -498,7 +498,7 @@ static int parse_str_list(m_option_t* opt,char *name, char *param, void* dst, in
if(!dst) return 1;
res = malloc((n+1)*sizeof(char*));
res = malloc((n+2)*sizeof(char*));
ptr = param;
n = 0;