diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-25 18:28:26 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-25 18:28:26 +0000 |
commit | dae251c597a8b9fdfb065ff0d6dd117bfc5b355c (patch) | |
tree | 8d520b92c4eb0b40fec2af4e0735eefdfe697b5b /libmpdemux | |
parent | bbd2eafbb19376b619571a4382c77f61044f780b (diff) | |
download | mpv-dae251c597a8b9fdfb065ff0d6dd117bfc5b355c.tar.bz2 mpv-dae251c597a8b9fdfb065ff0d6dd117bfc5b355c.tar.xz |
10l found by yepyep
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10184 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/asf_mmst_streaming.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/asf_mmst_streaming.c b/libmpdemux/asf_mmst_streaming.c index 179977530a..fd0ecbf994 100644 --- a/libmpdemux/asf_mmst_streaming.c +++ b/libmpdemux/asf_mmst_streaming.c @@ -424,7 +424,7 @@ asf_mmst_streaming_seek( int fd, off_t pos, streaming_ctrl_t *streaming_ctrl ) 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 @@ int asf_mmst_streaming_start(stream_t *stream) * 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); |