From: hyc Date: Fri, 26 Feb 2010 04:32:55 +0000 (+0000) Subject: Account for quotes in cmd string X-Git-Tag: v2.4~254 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99d15619405f63c196cd0103e2617401b37e87e4;p=rtmpdump Account for quotes in cmd string git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@275 400ebc74-4327-4243-bc38-086b20814532 --- diff --git a/rtmpsrv.c b/rtmpsrv.c index 534d9c7..ab24a74 100644 --- a/rtmpsrv.c +++ b/rtmpsrv.c @@ -578,7 +578,7 @@ ServeInvoke(STREAMING_SERVER *server, RTMP * r, RTMPPacket *packet, unsigned int if (r->Link.tcUrl.av_len) { len = server->arglen + r->Link.playpath.av_len + 4 + - sizeof("rtmpdump") + r->Link.playpath.av_len + 8; + sizeof("rtmpdump") + r->Link.playpath.av_len + 12; server->argc += 5; cmd = malloc(len + server->argc * sizeof(AVal));