projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2040a8
)
use av_strdup instead malloc/strcpy
author
Alex Beregszaszi
<alex@rtfs.hu>
Sun, 22 Apr 2007 17:56:26 +0000
(17:56 +0000)
committer
Alex Beregszaszi
<alex@rtfs.hu>
Sun, 22 Apr 2007 17:56:26 +0000
(17:56 +0000)
Originally committed as revision 8785 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index
682addc
..
f28cbe2
100644
(file)
--- 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));