summaryrefslogtreecommitdiff
path: root/source4/lib/util_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/util_str.c')
-rw-r--r--source4/lib/util_str.c4
1 files changed, 2 insertions, 2 deletions
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);