mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
use strncpy instead of strcpy_s, should fix actions
This commit is contained in:
parent
30930c7c82
commit
a6853080ad
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user