parent
acc6373939
commit
ebe4bf6286
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue