Second part of fix for bug 8310 - toupper_ascii() is broken on big-endian systems.
[obnox/samba-ctdb.git] / source3 / lib / ms_fnmatch.c
index 31c66953a961295706fb0f03b945ec1cc3af420e..bff7382940734f3b26adcaee6aeff21f6816fbd5 100644 (file)
@@ -129,7 +129,7 @@ static int ms_fnmatch_core(const smb_ucs2_t *p, const smb_ucs2_t *n,
                                if (is_case_sensitive) {
                                        return -1;
                                }
-                               if (toupper_m(c) != toupper_m(*n)) {
+                               if (toupper_w(c) != toupper_w(*n)) {
                                        return -1;
                                }
                        }