use av_strdup instead malloc/strcpy

Originally committed as revision 8785 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Alex Beregszaszi 18 years ago
parent d2040a8fb6
commit cb2abe3f4d
  1. 3
      ffserver.c

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

Loading…
Cancel
Save