Fix: Incorrect length limit for node socket idname

This commit is contained in:
Hans Goudey 2025-01-15 14:59:38 -05:00
parent 40b3c6baf7
commit 7456709b69

View file

@ -174,12 +174,12 @@ static StructRNA *rna_NodeSocket_register(Main * /*bmain*/,
return nullptr;
}
if (strlen(identifier) >= sizeof(dummy_st.idname)) {
if (strlen(identifier) >= sizeof(dummy_sock.idname)) {
BKE_reportf(reports,
RPT_ERROR,
"Registering node socket class: '%s' is too long, maximum length is %d",
identifier,
int(sizeof(dummy_st.idname)));
int(sizeof(dummy_sock.idname)));
return nullptr;
}