diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-12-09 09:33:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-12-09 09:33:11 +0300 |
commit | ebe4bf6286b165cc5f7e6f237a9c2683e109e4de (patch) | |
tree | fda91226b05e82bfe131623d29a8e72342f4548e /source | |
parent | acc6373939d4825d9be0d8fa81e9a1a4e3dd0d27 (diff) |
Fix another id-property name length check
Missed this in 6c9263d817b7b4dcd4d6e1f365d1db0a83de6e51
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/generic/idprop_py_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/idprop_py_api.c b/source/blender/python/generic/idprop_py_api.c index c125edea19f..63fb685e66d 100644 --- a/source/blender/python/generic/idprop_py_api.c +++ b/source/blender/python/generic/idprop_py_api.c @@ -253,7 +253,7 @@ static int BPy_IDGroup_SetName(BPy_IDProperty *self, PyObject *value, void *UNUS name = _PyUnicode_AsStringAndSize(value, &name_size); - if (name_size > MAX_IDPROP_NAME) { + if (name_size >= MAX_IDPROP_NAME) { PyErr_SetString(PyExc_TypeError, "string length cannot exceed 63 characters!"); return -1; } |