From 9e3ac14341ffe5e5308744d1125a7d519afe1e82 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 26 Jan 2019 23:17:31 +1100 Subject: Fix incorrect sizeof use in rna array formatting --- source/blender/makesrna/intern/rna_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '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] == ']') { -- cgit v1.2.3