Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-15 05:27:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-15 05:27:23 +0400
commit15969fba1f151a370dd2a74d9fa811704ab0eb53 (patch)
tree9c83ebc450761533594fb041b435c787de4cefba /source/blender/blenloader
parent2413b444d0c41639c49cd3bc76364077eff7d9da (diff)
Fix reading one byte past the buffer when writing string properties
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/writefile.c2
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)