From 5c35f3dbd125338b393ba0bcebfd0234c57719b7 Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Thu, 13 Feb 2020 20:04:50 +0100 Subject: fix strncasecmp in tokencap --- libtokencap/libtokencap.so.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtokencap/libtokencap.so.c') diff --git a/libtokencap/libtokencap.so.c b/libtokencap/libtokencap.so.c index b6ef05f3..1bffd2fa 100644 --- a/libtokencap/libtokencap.so.c +++ b/libtokencap/libtokencap.so.c @@ -380,8 +380,8 @@ int strncasecmp(const char* str1, const char* str2, size_t len) { const unsigned char c1 = tolower(*str1), c2 = tolower(*str2); - if (!c1) return 0; if (c1 != c2) return (c1 > c2) ? 1 : -1; + if (!c1) return 0; str1++; str2++; -- cgit 1.4.1 From 12df4c4af7b7bf394fa92d40c6b3509da97d556d Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Thu, 13 Feb 2020 20:07:48 +0100 Subject: fix strncmp in tokencap --- libtokencap/libtokencap.so.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtokencap/libtokencap.so.c') diff --git a/libtokencap/libtokencap.so.c b/libtokencap/libtokencap.so.c index 1bffd2fa..d400d3b3 100644 --- a/libtokencap/libtokencap.so.c +++ b/libtokencap/libtokencap.so.c @@ -330,8 +330,8 @@ int strncmp(const char* str1, const char* str2, size_t len) { unsigned char c1 = *str1, c2 = *str2; - if (!c1) return 0; if (c1 != c2) return (c1 > c2) ? 1 : -1; + if (!c1) return 0; str1++; str2++; -- cgit 1.4.1