1
0
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:
Daniel Stenberg 2004-10-07 22:56:24 +00:00
parent 253ff7b2ad
commit 62f97f1817

View File

@ -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;
}