소스 검색

str: Fixed broken faux_str_casecmpn().

Serj Kalichev 4 달 전
부모
커밋
0b2564f819
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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(