Merge pull request #1308 from lioncash/uninit

rosalina/errdisp: Correct uninitialized variable usage in ERRF_HandleCommands
This commit is contained in:
TuxSH 2019-11-05 00:14:28 +00:00 committed by GitHub
commit da8df54649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,7 +279,7 @@ void ERRF_HandleCommands(void *ctx)
else
{
cmdbuf[0] = 0x20040;
u32 sz = cmdbuf[1] <= 0x100 ? sz : 0x100;
u32 sz = cmdbuf[1] <= 0x100 ? cmdbuf[1] : 0x100;
memcpy(userString, cmdbuf + 3, sz);
userString[sz] = 0;
}