diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2007-04-22 17:56:26 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2007-04-22 17:56:26 +0000 |
commit | cb2abe3f4d5f97b18956b5cfec4c2319e8b45c56 (patch) | |
tree | af021cbc03bb4e7a5c60fec3303cfe3595bc8f81 | |
parent | d2040a8fb6424a8a6917e24f91047c5b0790aa75 (diff) | |
download | ffmpeg-streaming-cb2abe3f4d5f97b18956b5cfec4c2319e8b45c56.zip ffmpeg-streaming-cb2abe3f4d5f97b18956b5cfec4c2319e8b45c56.tar.gz |
use av_strdup instead malloc/strcpy
Originally committed as revision 8785 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffserver.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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)); |