Cleanup strlen_size

This commit is contained in:
twinaphex 2020-08-25 17:24:03 +02:00
parent ed6f32fd80
commit 6a88b3f20e

View File

@ -79,7 +79,7 @@ static INLINE size_t strlen_size(const char *str, size_t size)
{
size_t i = 0;
if (str)
for(; (i < size) && str[i]; ++i);
while (i < size && str[i]) i++;
return i;
}