From 03ff071af9d9a40cb3dae7a0989d7fa8a51aba8b Mon Sep 17 00:00:00 2001
From: Philip Gladstone <philipjsg@users.sourceforge.net>
Date: Sat, 12 Apr 2003 03:03:26 +0000
Subject: [PATCH] Fix a horrible bug with the launch keyword not handling
 arguments of length 1!

Originally committed as revision 1761 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 ffserver.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/ffserver.c b/ffserver.c
index 5f5b37408e9..265e3ac579f 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3823,11 +3823,8 @@ static int parse_ffconfig(const char *filename)
                     if (!argbuf[0])
                         break;
 
-                    if (strlen(argbuf + 1)) {
-		        feed->child_argv[i] = av_malloc(strlen(argbuf + 1));
-                        strcpy(feed->child_argv[i], argbuf);
-		    } else
-		        feed->child_argv[i] = NULL;
+                    feed->child_argv[i] = av_malloc(strlen(argbuf) + 1);
+                    strcpy(feed->child_argv[i], argbuf);
                 }
 
                 feed->child_argv[i] = av_malloc(30 + strlen(feed->filename));
-- 
GitLab