Explorar el Código

str: Fixed broken faux_str_casecmpn().

Serj Kalichev hace 4 meses
padre
commit
0b2564f819
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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(