[Bf-blender-cvs] [15969fb] master: Fix reading one byte past the buffer when writing string properties
Campbell Barton
noreply at git.blender.org
Sat Feb 15 02:33:42 CET 2014
Commit: 15969fba1f151a370dd2a74d9fa811704ab0eb53
Author: Campbell Barton
Date: Sat Feb 15 12:27:23 2014 +1100
https://developer.blender.org/rB15969fba1f151a370dd2a74d9fa811704ab0eb53
Fix reading one byte past the buffer when writing string properties
===================================================================
M source/blender/blenloader/intern/writefile.c
===================================================================
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 854e9d8..f724458 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -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)
More information about the Bf-blender-cvs
mailing list