Fix old warnings: remove strncpy

Use strcpy_trunc instead.
Change some sce structs.
This commit is contained in:
Nekotekina 2021-01-20 09:59:41 +03:00
parent c66b155dcb
commit f944573b3c
7 changed files with 25 additions and 33 deletions

View file

@ -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);