mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:37:18 +03:00
use curl_strnequal(), not strncasecmp()
This commit is contained in:
parent
253ff7b2ad
commit
62f97f1817
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue