mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Fix warning about truncation
This commit is contained in:
parent
a5b3b0df40
commit
6a4ba9d562
3 changed files with 4 additions and 3 deletions
|
|
@ -159,7 +159,7 @@ s32 sysutil_check_name_string(const char* src, s32 minlen, s32 maxlen)
|
|||
return -1;
|
||||
}
|
||||
|
||||
for (u32 index = 0;; cur = src[++index])
|
||||
for (s32 index = 0;; cur = src[++index])
|
||||
{
|
||||
if (cur == '\0' || index == maxlen)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue