diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-26 15:17:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-26 15:18:12 +0300 |
commit | 9e3ac14341ffe5e5308744d1125a7d519afe1e82 (patch) | |
tree | 400f01dc942c8e97d057d78e407c1d3f79f438cf /source/blender/makesrna/intern | |
parent | 04a5dbbd0960b409ec479131837432a70a9b902d (diff) |
Fix incorrect sizeof use in rna array formatting
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 2 |
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] == ']') { |