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 strncasecmp_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 16:16:44 +13:00 committed by Andrew Bartlett
parent 6159b098cf
commit 997b72d79e

View File

@ -157,14 +157,14 @@ _PUBLIC_ int strncasecmp_m_handle(struct smb_iconv_handle *iconv_handle,
continue;
}
return l1 - l2;
return NUMERIC_CMP(l1, l2);
}
if (n == 0) {
return 0;
}
return *s1 - *s2;
return NUMERIC_CMP(*s1, *s2);
}
/**