mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
Fix old warnings: remove strncpy
Use strcpy_trunc instead. Change some sce structs.
This commit is contained in:
parent
c66b155dcb
commit
f944573b3c
7 changed files with 25 additions and 33 deletions
|
@ -392,7 +392,7 @@ error_code sceNpTrophyCreateContext(vm::ptr<u32> context, vm::cptr<SceNpCommunic
|
|||
name_sv = name_sv.substr(0, pos);
|
||||
}
|
||||
|
||||
sceNpTrophy.warning("sceNpTrophyCreateContext(): data='%s' term='%c' (0x%x) num=%d", name_sv, commId->term, commId->term, commId->num);
|
||||
sceNpTrophy.warning("sceNpTrophyCreateContext(): data='%s' term='%c' (0x%x) num=%d", name_sv, commId->data[9], commId->data[9], commId->num);
|
||||
|
||||
// append the commId number as "_xx"
|
||||
const std::string name = fmt::format("%s_%02d", name_sv, commId->num);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue