Commit cb2abe3f authored by Alex Beregszaszi's avatar Alex Beregszaszi

use av_strdup instead malloc/strcpy

Originally committed as revision 8785 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d2040a8f
......@@ -3896,8 +3896,7 @@ static int parse_ffconfig(const char *filename)
if (!argbuf[0])
break;
feed->child_argv[i] = av_malloc(strlen(argbuf) + 1);
strcpy(feed->child_argv[i], argbuf);
feed->child_argv[i] = av_strdup(argbuf);
}
feed->child_argv[i] = av_malloc(30 + strlen(feed->filename));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment