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 /ffserver.c | |
parent | d2040a8fb6424a8a6917e24f91047c5b0790aa75 (diff) | |
download | ffmpeg-cb2abe3f4d5f97b18956b5cfec4c2319e8b45c56.tar.gz |
use av_strdup instead malloc/strcpy
Originally committed as revision 8785 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ffserver.c b/ffserver.c index 682addcb94..f28cbe2880 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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)); |