Merge pull request #1280 from EQEmu/bug_fix/strcpy_overlap_GetGroupLeadershipInfo

[ASan] Fix strcpy-param-overlap with GetGroupLeadershipInfo calls
This commit is contained in:
Alex authored and GitHub committed 2021-03-05 19:24:42 -08:00
commit e5f5db69b4
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -507,7 +507,7 @@ void Database::FlagInstanceByGroupLeader(uint32 zone, int16 version, uint32 char
char ln[128];
memset(ln, 0, 128);
strcpy(ln, GetGroupLeadershipInfo(gid, ln));
GetGroupLeadershipInfo(gid, ln);
uint32 l_charid = GetCharacterID((const char*)ln);
uint16 l_id = GetInstanceID(zone, l_charid, version);