From 228b8a01074fa999bf28de85610c0735b414ee59 Mon Sep 17 00:00:00 2001 From: arpi Date: Fri, 6 Dec 2002 17:11:50 +0000 Subject: 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 --- m_option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm_option.c') diff --git a/m_option.c b/m_option.c index 75645c15ee..14da9809c4 100644 --- a/m_option.c +++ b/m_option.c @@ -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; -- cgit v1.2.3