[rtmpdump] r469 - trunk/librtmp/rtmp.c

hyc subversion at mplayerhq.hu
Tue May 4 22:16:01 CEST 2010


Author: hyc
Date: Tue May  4 22:16:00 2010
New Revision: 469

Log:
Fix rtmpt clientID was not NUL-terminated

Modified:
   trunk/librtmp/rtmp.c

Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c	Tue May  4 18:50:35 2010	(r468)
+++ trunk/librtmp/rtmp.c	Tue May  4 22:16:00 2010	(r469)
@@ -3505,6 +3505,7 @@ HTTP_read(RTMP *r, int fill)
         return -1;
       r->m_clientID.av_val[0] = '/';
       memcpy(r->m_clientID.av_val+1, ptr, hlen-1);
+	  r->m_clientID.av_val[hlen] = 0;
       r->m_sb.sb_size = 0;
     }
   else


More information about the rtmpdump mailing list