mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 20:14:45 +00:00
use strncpy instead of strcpy_s, should fix actions
This commit is contained in:
parent
30930c7c82
commit
a6853080ad
1 changed files with 8 additions and 4 deletions
|
@ -311,8 +311,10 @@ int PS4_SYSV_ABI sceNpTrophyGetTrophyInfo(OrbisNpTrophyContext context, OrbisNpT
|
|||
details->hidden = false;
|
||||
}
|
||||
|
||||
strcpy_s(details->name, currentTrophyName.c_str());
|
||||
strcpy_s(details->description, currentTrophyDescription.c_str());
|
||||
strncpy(details->name, currentTrophyName.c_str(),
|
||||
ORBIS_NP_TROPHY_NAME_MAX_SIZE);
|
||||
strncpy(details->description, currentTrophyDescription.c_str(),
|
||||
ORBIS_NP_TROPHY_DESCR_MAX_SIZE);
|
||||
|
||||
data->trophyId = trophyId;
|
||||
data->unlocked = true;
|
||||
|
@ -335,8 +337,10 @@ int PS4_SYSV_ABI sceNpTrophyGetTrophyInfo(OrbisNpTrophyContext context, OrbisNpT
|
|||
details->hidden = false;
|
||||
}
|
||||
|
||||
strcpy_s(details->name, currentTrophyName.c_str());
|
||||
strcpy_s(details->description, currentTrophyDescription.c_str());
|
||||
strncpy(details->name, currentTrophyName.c_str(),
|
||||
ORBIS_NP_TROPHY_NAME_MAX_SIZE);
|
||||
strncpy(details->description, currentTrophyDescription.c_str(),
|
||||
ORBIS_NP_TROPHY_DESCR_MAX_SIZE);
|
||||
|
||||
data->trophyId = trophyId;
|
||||
data->unlocked = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue