Fix reading one byte past the buffer when writing string properties
This commit is contained in:
@@ -444,7 +444,7 @@ static void IDP_WriteIDPArray(IDProperty *prop, void *wd)
|
|||||||
static void IDP_WriteString(IDProperty *prop, void *wd)
|
static void IDP_WriteString(IDProperty *prop, void *wd)
|
||||||
{
|
{
|
||||||
/*REMEMBER to set totalen to len in the linking code!!*/
|
/*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)
|
static void IDP_WriteGroup(IDProperty *prop, void *wd)
|
||||||
|
|||||||
Reference in New Issue
Block a user