diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-15 05:27:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-15 05:27:23 +0400 |
commit | 15969fba1f151a370dd2a74d9fa811704ab0eb53 (patch) | |
tree | 9c83ebc450761533594fb041b435c787de4cefba /source | |
parent | 2413b444d0c41639c49cd3bc76364077eff7d9da (diff) |
Fix reading one byte past the buffer when writing string properties
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |