[MPlayer-cvslog] r25804 - trunk/stream/stream_cddb.c
reimar
subversion at mplayerhq.hu
Sat Jan 19 17:33:06 CET 2008
Author: reimar
Date: Sat Jan 19 17:33:06 2008
New Revision: 25804
Log:
Make sure we do not write the terminating 0 out of bounds
Modified:
trunk/stream/stream_cddb.c
Modified: trunk/stream/stream_cddb.c
==============================================================================
--- trunk/stream/stream_cddb.c (original)
+++ trunk/stream/stream_cddb.c Sat Jan 19 17:33:06 2008
@@ -455,7 +455,7 @@ cddb_read_parse(HTTP_header_t *http_hdr,
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;
More information about the MPlayer-cvslog
mailing list