Replace a LOT of sprintf with snprintf, and a few strcpy with truncate_cpy
This commit is contained in:
parent
c02634c161
commit
6945deec01
39 changed files with 170 additions and 193 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue