Harden inspect message handling

Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-24 03:23:51 +00:00
parent 58e007a50f
commit e02da5ba4a
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1853,7 +1853,7 @@ void SharedDatabase::LoadCharacterInspectMessage(uint32 character_id, InspectMes
return;
}
memcpy(s, e.inspect_message.c_str(), sizeof(InspectMessage_Struct));
strn0cpy(s->text, e.inspect_message.c_str(), sizeof(s->text));
}
void SharedDatabase::SaveCharacterInspectMessage(uint32 character_id, const InspectMessage_Struct* s)