Commit: 9e3ac14341ffe5e5308744d1125a7d519afe1e82
Author: Campbell Barton
Date:   Sat Jan 26 23:17:31 2019 +1100
Branches: master
https://developer.blender.org/rB9e3ac14341ffe5e5308744d1125a7d519afe1e82

Fix incorrect sizeof use in rna array formatting

===================================================================

M       source/blender/makesrna/intern/rna_access.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_access.c 
b/source/blender/makesrna/intern/rna_access.c
index c159d4d9daa..c97b66b4aed 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -6937,7 +6937,7 @@ static int rna_function_format_array_length(const char 
*format, int ofs, int fle
        int idx = 0;
 
        if (format[ofs++] == '[')
-               for (; ofs < flen && format[ofs] != ']' && idx < 
sizeof(*lenbuf) - 1; idx++, ofs++)
+               for (; ofs < flen && format[ofs] != ']' && idx < sizeof(lenbuf) 
- 1; idx++, ofs++)
                        lenbuf[idx] = format[ofs];
 
        if (ofs < flen && format[ofs + 1] == ']') {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to