Commit b1d78d2d authored by alex's avatar alex

use av_strdup instead malloc/strcpy

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8785 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8d758f5e
......@@ -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