Browse Source

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
tags/v0.5
Philip Gladstone 23 years ago
parent
commit
03ff071af9
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      ffserver.c

+ 2
- 5
ffserver.c 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));


Loading…
Cancel
Save