From 1ec841d33e035f11ec12edbce52eab1c559d32e6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Sep 2004 01:42:04 +0000 Subject: r2454: fixed the accelerated StrCaseCmp() so it compares in the right order (This used to be commit 4b795cbf12108e56e5e84e3073c24ce6b625e3c3) --- source4/lib/util_str.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/lib/util_str.c b/source4/lib/util_str.c index 3fe6fd1cc0..faa8690849 100644 --- a/source4/lib/util_str.c +++ b/source4/lib/util_str.c @@ -148,14 +148,14 @@ int StrCaseCmp(const char *s1, const char *s2) char u1 = toupper(*s1); char u2 = toupper(*s2); if (u1 != u2) { - return u2 - u1; + return u1 - u2; } s1++; s2++; } if (*s1 == 0 || *s2 == 0) { - return *s2 - *s1; + return *s1 - *s2; } return StrCaseCmp_slow(s1, s2); -- cgit