Mercurial > mplayer.hg
changeset 10183:2ffb9a8b0428
10l found by yepyep
author | alex |
---|---|
date | Sun, 25 May 2003 18:28:26 +0000 |
parents | ec396687af24 |
children | b6c63ab184a4 |
files | libmpdemux/asf_mmst_streaming.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/asf_mmst_streaming.c Sun May 25 17:26:31 2003 +0000 +++ b/libmpdemux/asf_mmst_streaming.c Sun May 25 18:28:26 2003 +0000 @@ -424,7 +424,7 @@ int asf_mmst_streaming_start(stream_t *stream) { char str[1024]; - char data[1024]; + char data[BUF_SIZE]; uint8_t asf_header[8192]; int asf_header_len; int len, i, packet_length; @@ -455,7 +455,7 @@ * cmd 1 0x01 * */ - sprintf (str, "\034\003NSPlayer/7.0.0.1956; {33715801-BAB3-9D85-24E9-03B90328270A}; Host: %s", url1->hostname); + snprintf (str, 1023, "\034\003NSPlayer/7.0.0.1956; {33715801-BAB3-9D85-24E9-03B90328270A}; Host: %s", url1->hostname); string_utf16 (data, str, strlen(str)+2); // send_command(s, commandno ....) send_command (s, 1, 0, 0x0004000b, strlen(str) * 2+8, data);