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>2011-11-15 14:32:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-15 14:32:08 +0400
commit3cf56d46d19773cca897d99201cfa56c20a1b2e1 (patch)
tree61179e77930a6fcf9c01db324c51f1df554e4135 /source/blender/makesrna
parent4de917326b45d2678f23c60cfaa9d48dcd7aad18 (diff)
add IDP_EqualsProperties support for comparing non-null terminated byte strings.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 2b31f7184b6..1c68e34791a 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -2336,7 +2336,7 @@ int RNA_property_string_length(PointerRNA *ptr, PropertyRNA *prop)
return idprop->len;
}
else {
- return strlen(IDP_String(idprop));
+ return idprop->len - 1;
}
}
else if(sprop->length)