Replace a LOT of sprintf with snprintf, and a few strcpy with truncate_cpy

This commit is contained in:
Henrik Rydgård 2023-04-28 21:04:05 +02:00
parent c02634c161
commit 6945deec01
39 changed files with 170 additions and 193 deletions

View file

@ -523,7 +523,7 @@ void KernelObjectPool::List() {
if (occupied[i]) {
char buffer[256];
if (pool[i]) {
pool[i]->GetQuickInfo(buffer, 256);
pool[i]->GetQuickInfo(buffer, sizeof(buffer));
INFO_LOG(SCEKERNEL, "KO %i: %s \"%s\": %s", i + handleOffset, pool[i]->GetTypeName(), pool[i]->GetName(), buffer);
} else {
strcpy(buffer, "WTF? Zero Pointer");