Fix #137366: UI: wrong render slot names

Regression in [0] caused by passing in the size instead of the string
length to the UTF8 stripping function.

[0]: 94aabc0dbe
This commit is contained in:
Campbell Barton
2025-04-12 09:42:00 +10:00
parent 0354136775
commit 7e9aab9d57

View File

@@ -6774,7 +6774,7 @@ void blo_do_versions_400(FileData *fd, Library * /*lib*/, Main *bmain)
LISTBASE_FOREACH (Image *, image, &bmain->images) {
LISTBASE_FOREACH (RenderSlot *, slot, &image->renderslots) {
if (slot->name[0]) {
BLI_str_utf8_invalid_strip(slot->name, sizeof(slot->name));
BLI_str_utf8_invalid_strip(slot->name, BLI_strnlen(slot->name, sizeof(slot->name)));
}
}
}