Mercurial > mplayer.hg
changeset 18853:1ec19da0c642
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)
author | ben |
---|---|
date | Thu, 29 Jun 2006 21:50:49 +0000 |
parents | b17648e2762e |
children | a973acb2e572 |
files | libmpdemux/librtsp/rtsp.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/librtsp/rtsp.c Thu Jun 29 21:46:51 2006 +0000 +++ b/libmpdemux/librtsp/rtsp.c Thu Jun 29 21:50:49 2006 +0000 @@ -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, "");