Ver código fonte

str: Fixed broken faux_str_casecmpn().

Serj Kalichev 4 meses atrás
pai
commit
0b2564f819
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      faux/str/str.c

+ 1 - 1
faux/str/str.c

@@ -393,7 +393,7 @@ int faux_str_casecmpn(const char *str1, const char *str2, size_t n)
 		num--;
 	}
 
-	if (0 == n) // It means n first characters are equal.
+	if (0 == num) // It means n first characters are equal.
 		return 0;
 
 	return faux_str_cmp_chars(