Fix a horrible bug with the launch keyword not handling arguments of length 1!

Originally committed as revision 1761 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Philip Gladstone 2003-04-12 03:03:26 +00:00
parent be0d154911
commit 03ff071af9
1 changed files with 2 additions and 5 deletions

View File

@ -3823,11 +3823,8 @@ static int parse_ffconfig(const char *filename)
if (!argbuf[0])
break;
if (strlen(argbuf + 1)) {
feed->child_argv[i] = av_malloc(strlen(argbuf + 1));
strcpy(feed->child_argv[i], argbuf);
} else
feed->child_argv[i] = NULL;
feed->child_argv[i] = av_malloc(strlen(argbuf) + 1);
strcpy(feed->child_argv[i], argbuf);
}
feed->child_argv[i] = av_malloc(30 + strlen(feed->filename));