summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/security.c b/lib/security.c
index 3b2a39213..e87a5144b 100644
--- a/lib/security.c
+++ b/lib/security.c
@@ -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;
}