From defe32e9f47d9eca44533056b652f3b1c3f56c8e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 20 Sep 2004 07:24:00 +0000 Subject: r2432: more string function updates. btw, the reason I want to use strncasecmp() instead of StrnCaseCmp() is that the Samba internal functions are built to deal with multi-byte, whereas in the cases I am converting we know we are dealing with solely ascii string constants, so going via the slow conversion libraries is pointless. (This used to be commit cef08d5789277bdaa25d5bf0e7cfca8615230f1b) --- source4/libcli/ldap/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/libcli/ldap/ldap.c') diff --git a/source4/libcli/ldap/ldap.c b/source4/libcli/ldap/ldap.c index 7af9ca42c5..72e8f605dc 100644 --- a/source4/libcli/ldap/ldap.c +++ b/source4/libcli/ldap/ldap.c @@ -1121,7 +1121,7 @@ BOOL ldap_parse_basic_url(TALLOC_CTX *mem_ctx, const char *url, const char *p = url; /* skip leading "URL:" (if any) */ - if ( strnequal( p, "URL:", 4 ) ) { + if (strncasecmp( p, "URL:", 4) == 0) { p += 4; } -- cgit