Fix #98973: Renaming Custom Python Properties is Incorrect #107983
|
@ -266,7 +266,7 @@ static int BPy_IDGroup_SetName(BPy_IDProperty *self, PyObject *value, void *UNUS
|
|||
return -1;
|
||||
brecht marked this conversation as resolved
|
||||
}
|
||||
|
||||
memcpy(self->prop->name, name, name_size);
|
||||
memcpy(self->prop->name, name, name_size + 1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
The these here should add + 1 as well then, I can fix that as part of the commit.
I think not,
name_size
don t count the null terminator, so we can have up to 63 characters and character 64 can be '\0'if the check was
if (name_size + 1 > MAX_IDPROP_NAME) {
, so there yesYou're right, fixed now in
f3c45f5b5a
.@brecht can you take a second look?
edit: I saw now you message