1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

util:charset:util_str: use NUMERIC_CMP in strcasecmp_m_handle

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15625

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2024-04-03 15:49:55 +13:00 committed by Andrew Bartlett
parent a512759d7b
commit f788a39999
2 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,7 @@
#include "system/locale.h"
#include "charset.h"
#include "lib/util/fault.h"
#include "lib/util/tsort.h"
#ifdef strcasecmp
#undef strcasecmp
@ -79,10 +80,10 @@ _PUBLIC_ int strcasecmp_m_handle(struct smb_iconv_handle *iconv_handle,
continue;
}
return l1 - l2;
return NUMERIC_CMP(l1, l2);
}
return *s1 - *s2;
return NUMERIC_CMP(*s1, *s2);
}
/**

View File

@ -0,0 +1 @@
^samba.unittests.ms_fnmatch.test_ms_fn_match_protocol_no_wildcard