mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
use curl_strnequal(), not strncasecmp()
This commit is contained in:
parent
253ff7b2ad
commit
62f97f1817
@ -80,7 +80,7 @@ name_to_level(const char *name)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < (int)sizeof(level_names)/(int)sizeof(level_names[0]); i++)
|
||||
if(!strncasecmp(level_names[i].name, name, strlen(name)))
|
||||
if(curl_strnequal(level_names[i].name, name, strlen(name)))
|
||||
return level_names[i].level;
|
||||
return (enum protection_level)-1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user