Initializacia
This commit is contained in:
parent
79e0d5633e
commit
efd3e34cb5
@ -38,6 +38,14 @@ int contains_normalized(const char *name, const char *search) {
|
|||||||
char transformed_name[LINESIZE], transformed_search[LINESIZE];
|
char transformed_name[LINESIZE], transformed_search[LINESIZE];
|
||||||
transform_to_hacker_script(name, transformed_name);
|
transform_to_hacker_script(name, transformed_name);
|
||||||
transform_to_hacker_script(search, transformed_search);
|
transform_to_hacker_script(search, transformed_search);
|
||||||
|
|
||||||
|
for (int i = 0; transformed_name[i]; i++) {
|
||||||
|
transformed_name[i] = tolower(transformed_name[i]);
|
||||||
|
}
|
||||||
|
for (int i = 0; transformed_search[i]; i++) {
|
||||||
|
transformed_search[i] = tolower(transformed_search[i]);
|
||||||
|
}
|
||||||
|
|
||||||
return strstr(transformed_name, transformed_search) != NULL;
|
return strstr(transformed_name, transformed_search) != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user