Fix another id-property name length check

Missed this in 6c9263d817
This commit is contained in:
Campbell Barton 2020-12-09 17:33:11 +11:00
parent acc6373939
commit ebe4bf6286
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}