mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
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
This commit is contained in:
parent
fd3d8e7b3c
commit
20b28ac75e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user