Fix off by one error introduced by me in recent commit 6948a2d
This commit is contained in:
@@ -261,7 +261,7 @@ static int BPy_IDGroup_SetName(BPy_IDProperty *self, PyObject *value, void *UNUS
|
||||
|
||||
name = PyUnicode_AsUTF8AndSize(value, &name_size);
|
||||
|
||||
if (name_size + 1 >= MAX_IDPROP_NAME) {
|
||||
if (name_size + 1 > MAX_IDPROP_NAME) {
|
||||
PyErr_SetString(PyExc_TypeError, "string length cannot exceed 63 characters!");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user