game and db is building on windows
This commit is contained in:
@@ -248,7 +248,7 @@ void Initialize()
|
||||
|
||||
do
|
||||
{
|
||||
strlcpy(szCol2, start, MIN(sizeof(szCol2), (tab - start) + 1));
|
||||
std::strncpy(szCol2, start, MIN(sizeof(szCol2), (tab - start) + 1));
|
||||
szCol2[tab-start] = '\0';
|
||||
|
||||
trim_and_lower(szCol2, szCol, sizeof(szCol));
|
||||
@@ -259,7 +259,7 @@ void Initialize()
|
||||
{
|
||||
switch (iColCount++)
|
||||
{
|
||||
case 0: strlcpy(fish_info[idx].name, szCol, sizeof(fish_info[idx].name)); break;
|
||||
case 0: std::strncpy(fish_info[idx].name, szCol, sizeof(fish_info[idx].name)); break;
|
||||
case 1: str_to_number(fish_info[idx].vnum, szCol); break;
|
||||
case 2: str_to_number(fish_info[idx].dead_vnum, szCol); break;
|
||||
case 3: str_to_number(fish_info[idx].grill_vnum, szCol); break;
|
||||
@@ -660,11 +660,11 @@ void Take(fishing_event_info* info, LPCHARACTER ch)
|
||||
|
||||
if (info->fish_id == 5)
|
||||
{
|
||||
strlcpy(p.szBoard, LC_TEXT("낚시이벤트월척붕어"), sizeof(p.szBoard));
|
||||
std::strncpy(p.szBoard, LC_TEXT("낚시이벤트월척붕어"), sizeof(p.szBoard));
|
||||
}
|
||||
else if (info->fish_id == 6)
|
||||
{
|
||||
strlcpy(p.szBoard, LC_TEXT("낚시이벤트잉어"), sizeof(p.szBoard));
|
||||
std::strncpy(p.szBoard, LC_TEXT("낚시이벤트잉어"), sizeof(p.szBoard));
|
||||
}
|
||||
|
||||
db_clientdesc->DBPacket(HEADER_GD_HIGHSCORE_REGISTER, 0, &p, sizeof(TPacketGDHighscore));
|
||||
|
||||
Reference in New Issue
Block a user