mirror of https://github.com/mpv-player/mpv
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:
parent
504e9aa82a
commit
228b8a0107
|
@ -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') {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue