[Ffmpeg-cvslog] r8785 - trunk/ffserver.c

alex subversion
Sun Apr 22 19:56:26 CEST 2007


Author: alex
Date: Sun Apr 22 19:56:26 2007
New Revision: 8785

Log:
use av_strdup instead malloc/strcpy

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sun Apr 22 19:56:26 2007
@@ -3896,8 +3896,7 @@ static int parse_ffconfig(const char *fi
                     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));




More information about the ffmpeg-cvslog mailing list