From 20b28ac75e6a42d61b2bd87c5df725617dba9fc7 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 19 Jan 2008 16:33:06 +0000 Subject: Make sure we do not write the terminating 0 out of bounds git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25804 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_cddb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream_cddb.c b/stream/stream_cddb.c index 9d061cbaa1..70c21eb43e 100644 --- a/stream/stream_cddb.c +++ b/stream/stream_cddb.c @@ -455,7 +455,7 @@ cddb_read_parse(HTTP_header_t *http_hdr, cddb_data_t *cddb_data) { return -1; } cddb_data->xmcd_file = ptr; - cddb_data->xmcd_file_size = ptr2-ptr+2; + cddb_data->xmcd_file_size = ptr2-ptr; cddb_data->xmcd_file[cddb_data->xmcd_file_size] = '\0'; // Avoid the http_free function to free the xmcd file...save a mempcy... http_hdr->body = NULL; -- cgit v1.2.3