Fix warning about truncation

This commit is contained in:
Eladash 2019-12-07 08:19:28 +02:00 committed by Megamouse
parent a5b3b0df40
commit 6a4ba9d562
3 changed files with 4 additions and 3 deletions

View file

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