summaryrefslogtreecommitdiff
path: root/lib/security.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-10-07 22:56:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-10-07 22:56:24 +0000
commit62f97f1817379f448ce069add864bbd9f93806a1 (patch)
tree516f9c00cffb7a7df84b1588a760fe409fcddf2d /lib/security.c
parent253ff7b2ad5490cf19f6dd2728c5db932d256b4b (diff)
downloadcurl-62f97f1817379f448ce069add864bbd9f93806a1.tar.gz
use curl_strnequal(), not strncasecmp()
Diffstat (limited to 'lib/security.c')
-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;
}