]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/cctype: fix string comparison
authorKarel Zak <kzak@redhat.com>
Wed, 2 Apr 2025 09:00:47 +0000 (11:00 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 2 Apr 2025 09:00:47 +0000 (11:00 +0200)
commit259157b0c1a00806ff75188325e40ba10adf12ce
treedac05cf5fed93735e5746ee7d707af30decaf4f9
parentd2dadb78081989e1750423962eaf0aa79f222cc5
include/cctype: fix string comparison

Reimplement c_strcasecmp() and c_strncasecmp() to be libc compatible
and fix c_strncasecmp() to avoid \0 misinterpretation. The original
implementation was pretty stupid (sorry).

Signed-off-by: Karel Zak <kzak@redhat.com>
include/cctype.h