mirror of
https://github.com/mon/ifs_layeredfs.git
synced 2026-03-21 17:34:09 -05:00
avs: fix off-by-1 on bin2xml string allocation
This commit is contained in:
parent
ed373968df
commit
6b7c43d412
|
|
@ -341,7 +341,7 @@ property_t prop_from_file_path(string const&path) {
|
|||
|
||||
char* prop_to_xml_string(property_t prop, rapidxml::xml_document<>& allocator) {
|
||||
auto prop_size = property_query_size(prop);
|
||||
char* xml = allocator.allocate_string(NULL, prop_size);
|
||||
char* xml = allocator.allocate_string(NULL, prop_size + 1);
|
||||
|
||||
auto written = property_mem_write(prop, xml, prop_size);
|
||||
if (written > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user