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>2020-12-09 09:33:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-12-09 09:33:11 +0300
commitebe4bf6286b165cc5f7e6f237a9c2683e109e4de (patch)
treefda91226b05e82bfe131623d29a8e72342f4548e /source/blender/python
parentacc6373939d4825d9be0d8fa81e9a1a4e3dd0d27 (diff)
Fix another id-property name length check
Missed this in 6c9263d817b7b4dcd4d6e1f365d1db0a83de6e51
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/generic/idprop_py_api.c2
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;
}