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
pull/126/head
Philip Gladstone 22 years ago
parent be0d154911
commit 03ff071af9
  1. 7
      ffserver.c

@ -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));

Loading…
Cancel
Save