svn commit: samba r2454 - in branches/SAMBA_4_0/source/lib: .
tridge at samba.org
tridge at samba.org
Tue Sep 21 01:42:04 GMT 2004
Author: tridge
Date: 2004-09-21 01:42:04 +0000 (Tue, 21 Sep 2004)
New Revision: 2454
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/lib&rev=2454&nolog=1
Log:
fixed the accelerated StrCaseCmp() so it compares in the right order
Modified:
branches/SAMBA_4_0/source/lib/util_str.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/util_str.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util_str.c 2004-09-21 01:37:34 UTC (rev 2453)
+++ branches/SAMBA_4_0/source/lib/util_str.c 2004-09-21 01:42:04 UTC (rev 2454)
@@ -148,14 +148,14 @@
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);
More information about the samba-cvs
mailing list