[rtmpdump] branch master updated. 9df7959 Spell Referer according to RFC1945

gitolite gil at avcodec.org
Tue Nov 8 11:05:38 CET 2011


The branch, master has been updated
       via  9df7959a71ec33cc9c83c9d3ef25c17b1c527f0e (commit)
       via  90799efbb67f415ff930d68905e8267d5aa5dc4e (commit)
      from  b3467069ad7c26d748ca13ce0ee88a41f85b22dd (commit)


- Log -----------------------------------------------------------------
commit 9df7959a71ec33cc9c83c9d3ef25c17b1c527f0e
Author:     Howard Chu <hyc at highlandsun.com>
AuthorDate: Tue Nov 8 02:05:01 2011 -0800
Commit:     Howard Chu <hyc at highlandsun.com>
CommitDate: Tue Nov 8 02:05:01 2011 -0800

    Spell Referer according to RFC1945

diff --git a/librtmp/hashswf.c b/librtmp/hashswf.c
index 5576730..0320480 100644
--- a/librtmp/hashswf.c
+++ b/librtmp/hashswf.c
@@ -141,7 +141,7 @@ HTTP_get(struct HTTP_ctx *http, const char *url, HTTP_read_callback *cb)
     return HTTPRES_LOST_CONNECTION;
   i =
     sprintf(sb.sb_buf,
-	    "GET %s HTTP/1.0\r\nUser-Agent: %s\r\nHost: %s\r\nReferrer: %.*s\r\n",
+	    "GET %s HTTP/1.0\r\nUser-Agent: %s\r\nHost: %s\r\nReferer: %.*s\r\n",
 	    path, AGENT, host, (int)(path - url + 1), url);
   if (http->date[0])
     i += sprintf(sb.sb_buf + i, "If-Modified-Since: %s\r\n", http->date);

commit 90799efbb67f415ff930d68905e8267d5aa5dc4e
Author:     Howard Chu <hyc at highlandsun.com>
AuthorDate: Tue Nov 8 02:04:01 2011 -0800
Commit:     Howard Chu <hyc at highlandsun.com>
CommitDate: Tue Nov 8 02:04:01 2011 -0800

    Increase tcUrl buffer size

diff --git a/rtmpdump.c b/rtmpdump.c
index 01decf9..a8fa128 100644
--- a/rtmpdump.c
+++ b/rtmpdump.c
@@ -1152,9 +1152,9 @@ main(int argc, char **argv)
 
   if (tcUrl.av_len == 0)
     {
-      char str[512] = { 0 };
+      char str[1024];
 
-      tcUrl.av_len = snprintf(str, 511, "%s://%.*s:%d/%.*s",
+      tcUrl.av_len = snprintf(str, sizeof(str), "%s://%.*s:%d/%.*s",
 	  	   RTMPProtocolStringsLower[protocol], hostname.av_len,
 		   hostname.av_val, port, app.av_len, app.av_val);
       tcUrl.av_val = (char *) malloc(tcUrl.av_len + 1);

-----------------------------------------------------------------------

Summary of changes:
 librtmp/hashswf.c |    2 +-
 rtmpdump.c        |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 



More information about the rtmpdump mailing list