Fix reading one byte past the buffer when writing string properties

This commit is contained in:
2014-02-15 12:27:23 +11:00
parent 2413b444d0
commit 15969fba1f

View File

@@ -444,7 +444,7 @@ static void IDP_WriteIDPArray(IDProperty *prop, void *wd)
static void IDP_WriteString(IDProperty *prop, void *wd)
{
/*REMEMBER to set totalen to len in the linking code!!*/
writedata(wd, DATA, prop->len+1, prop->data.pointer);
writedata(wd, DATA, prop->len, prop->data.pointer);
}
static void IDP_WriteGroup(IDProperty *prop, void *wd)