From 15969fba1f151a370dd2a74d9fa811704ab0eb53 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 15 Feb 2014 12:27:23 +1100 Subject: [PATCH] Fix reading one byte past the buffer when writing string properties --- source/blender/blenloader/intern/writefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 854e9d8cec9..f724458c2ba 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)