Fixed string_length()

This commit is contained in:
Pierre Pronchery 2005-10-21 23:41:38 +00:00
parent aa6a65ceda
commit 6b48000802

View File

@ -66,7 +66,7 @@ int string_compare_length(String const * string, String const * string2,
u1 = string;
u2 = string2;
while(length-- && *u1 && *u2 && *u1 == *u2)
while(--length && *u1 && *u2 && *u1 == *u2)
{
u1++;
u2++;