diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-13 20:04:50 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-13 20:04:50 +0100 |
commit | 5c35f3dbd125338b393ba0bcebfd0234c57719b7 (patch) | |
tree | d2baf26a343797df4c8c91d08f94ed79a18713db /libtokencap/libtokencap.so.c | |
parent | 54bbddec602feef0bd4e3bdc066c50779825d178 (diff) | |
download | afl++-5c35f3dbd125338b393ba0bcebfd0234c57719b7.tar.gz |
fix strncasecmp in tokencap
Diffstat (limited to 'libtokencap/libtokencap.so.c')
-rw-r--r-- | libtokencap/libtokencap.so.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |