[MPlayer-cvslog] r18857 - trunk/libmpdemux/librtsp/rtsp.c

ben subversion at mplayerhq.hu
Thu Jun 29 23:50:50 CEST 2006


Author: ben
Date: Thu Jun 29 23:50:49 2006
New Revision: 18857

Modified:
   trunk/libmpdemux/librtsp/rtsp.c

Log:
increase buffer size, "CSeq: %u" has a worst case of 17 (fix 1.18 from xine, see http://xine.cvs.sourceforge.net/xine/xine-lib/src/input/librtsp/rtsp.c?r1=1.17&r2=1.18)

Modified: trunk/libmpdemux/librtsp/rtsp.c
==============================================================================
--- trunk/libmpdemux/librtsp/rtsp.c	(original)
+++ trunk/libmpdemux/librtsp/rtsp.c	Thu Jun 29 23:50:49 2006
@@ -293,9 +293,9 @@
 
 static void rtsp_schedule_standard(rtsp_t *s) {
 
-  char tmp[16];
+  char tmp[17];
   
-  snprintf(tmp, 16, "CSeq: %u", s->cseq);
+  snprintf(tmp, 17, "CSeq: %u", s->cseq);
   rtsp_schedule_field(s, tmp);
   
   if (s->session) {
@@ -548,7 +548,7 @@
       }
       /* let's make the server happy */
       rtsp_put(s, "RTSP/1.0 451 Parameter Not Understood");
-      rest=malloc(sizeof(char)*16);
+      rest=malloc(sizeof(char)*17);
       sprintf(rest,"CSeq: %u", seq);
       rtsp_put(s, rest);
       rtsp_put(s, "");



More information about the MPlayer-cvslog mailing list