mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-17 17:19:02 +00:00
use strncpy instead of strcpy_s, should fix actions
This commit is contained in:
@@ -311,8 +311,10 @@ int PS4_SYSV_ABI sceNpTrophyGetTrophyInfo(OrbisNpTrophyContext context, OrbisNpT
|
|||||||
details->hidden = false;
|
details->hidden = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy_s(details->name, currentTrophyName.c_str());
|
strncpy(details->name, currentTrophyName.c_str(),
|
||||||
strcpy_s(details->description, currentTrophyDescription.c_str());
|
ORBIS_NP_TROPHY_NAME_MAX_SIZE);
|
||||||
|
strncpy(details->description, currentTrophyDescription.c_str(),
|
||||||
|
ORBIS_NP_TROPHY_DESCR_MAX_SIZE);
|
||||||
|
|
||||||
data->trophyId = trophyId;
|
data->trophyId = trophyId;
|
||||||
data->unlocked = true;
|
data->unlocked = true;
|
||||||
@@ -335,8 +337,10 @@ int PS4_SYSV_ABI sceNpTrophyGetTrophyInfo(OrbisNpTrophyContext context, OrbisNpT
|
|||||||
details->hidden = false;
|
details->hidden = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy_s(details->name, currentTrophyName.c_str());
|
strncpy(details->name, currentTrophyName.c_str(),
|
||||||
strcpy_s(details->description, currentTrophyDescription.c_str());
|
ORBIS_NP_TROPHY_NAME_MAX_SIZE);
|
||||||
|
strncpy(details->description, currentTrophyDescription.c_str(),
|
||||||
|
ORBIS_NP_TROPHY_DESCR_MAX_SIZE);
|
||||||
|
|
||||||
data->trophyId = trophyId;
|
data->trophyId = trophyId;
|
||||||
data->unlocked = false;
|
data->unlocked = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user