Added string compare check to prevent false positives

This commit is contained in:
Sam Stevens
2014-08-25 15:47:34 +01:00
parent e34a32555b
commit 520c7abfd1
3 changed files with 6 additions and 15301 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/blocklist.txt /blocklist.txt
/hosts.txt
/list /list

15300
hosts.txt

File diff suppressed because it is too large Load Diff

4
list.c
View File

@@ -85,6 +85,10 @@ unsigned char find_entry(char* str) {
if (e == NULL) { if (e == NULL) {
return 0; return 0;
} else { } else {
if (strcmp(str, e->str) == 0) {
return 1; return 1;
} else {
return 0;
}
} }
} }