CString: Fix compilation in strnlen()

This commit is contained in:
apio 2023-01-22 11:43:10 +01:00
parent cf8d3c6ff9
commit 129297a0b0
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -49,7 +49,7 @@ extern "C"
usize strnlen(const char* str, usize max) usize strnlen(const char* str, usize max)
{ {
const char* i = str; const char* i = str;
for (; max, *i; ++i, --max) for (; *i && max; ++i, --max)
; ;
return (usize)(i - str); return (usize)(i - str);
} }