CString: Fix compilation in strnlen()
This commit is contained in:
parent
cf8d3c6ff9
commit
129297a0b0
@ -49,7 +49,7 @@ extern "C"
|
||||
usize strnlen(const char* str, usize max)
|
||||
{
|
||||
const char* i = str;
|
||||
for (; max, *i; ++i, --max)
|
||||
for (; *i && max; ++i, --max)
|
||||
;
|
||||
return (usize)(i - str);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user