mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 17:26:30 +00:00
Harden inspect message handling
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user