game and db is building on windows

This commit is contained in:
d1str4ught
2025-08-18 03:33:51 +02:00
parent 34000c3306
commit d87277458c
807 changed files with 273537 additions and 8380 deletions

View File

@@ -23,7 +23,7 @@ pck.bHeader = HEADER_GC_TARGET_CREATE;
pck.lID = info->iID;
pck.bType = info->iType;
pck.dwVID = info->iArg1;
strlcpy(pck.szName, info->szTargetDesc, sizeof(pck.szName));
std::strncpy(pck.szName, info->szTargetDesc, sizeof(pck.szName));
d->Packet(&pck, sizeof(TPacketGCTargetCreate));
}
@@ -181,7 +181,7 @@ void CTargetManager::CreateTarget(DWORD dwPID,
if (c_pszTargetDesc)
{
strlcpy(existInfo->szTargetDesc, c_pszTargetDesc, sizeof(existInfo->szTargetDesc));
std::strncpy(existInfo->szTargetDesc, c_pszTargetDesc, sizeof(existInfo->szTargetDesc));
}
else
{
@@ -206,7 +206,7 @@ void CTargetManager::CreateTarget(DWORD dwPID,
if (c_pszTargetDesc)
{
strlcpy(newInfo->szTargetDesc, c_pszTargetDesc, sizeof(newInfo->szTargetDesc));
std::strncpy(newInfo->szTargetDesc, c_pszTargetDesc, sizeof(newInfo->szTargetDesc));
}
else
{
@@ -218,7 +218,7 @@ void CTargetManager::CreateTarget(DWORD dwPID,
//newInfo->pkChr = pkChr;
newInfo->dwPID = dwPID;
newInfo->dwQuestIndex = dwQuestIndex;
strlcpy(newInfo->szTargetName, c_pszTargetName, sizeof(newInfo->szTargetName));
std::strncpy(newInfo->szTargetName, c_pszTargetName, sizeof(newInfo->szTargetName));
newInfo->iType = iType;
newInfo->iArg1 = iArg1;
newInfo->iArg2 = iArg2;