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>2019-01-26 15:17:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-26 15:18:12 +0300
commit9e3ac14341ffe5e5308744d1125a7d519afe1e82 (patch)
tree400f01dc942c8e97d057d78e407c1d3f79f438cf /source/blender/makesrna/intern/rna_access.c
parent04a5dbbd0960b409ec479131837432a70a9b902d (diff)
Fix incorrect sizeof use in rna array formatting
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-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 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] == ']') {