diff options
author | David Carlier <devnexen@gmail.com> | 2020-06-09 22:43:31 +0100 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2020-06-09 22:43:31 +0100 |
commit | 4ee4495120e93d3a5cab5625a5a8feb616f95246 (patch) | |
tree | cd70c1944ecb7a49db938d4376fd8020dd59f01e /libtokencap/libtokencap.so.c | |
parent | c02721775a6a6e864631eec7dbd83925e4930d42 (diff) | |
download | afl++-4ee4495120e93d3a5cab5625a5a8feb616f95246.tar.gz |
Disable array subscript warning
Diffstat (limited to 'libtokencap/libtokencap.so.c')
-rw-r--r-- | libtokencap/libtokencap.so.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libtokencap/libtokencap.so.c b/libtokencap/libtokencap.so.c index fdfa3e53..5a7cf3aa 100644 --- a/libtokencap/libtokencap.so.c +++ b/libtokencap/libtokencap.so.c @@ -357,7 +357,7 @@ int strcasecmp(const char *str1, const char *str2) { while (1) { - const unsigned char c1 = tolower(*str1), c2 = tolower(*str2); + const unsigned char c1 = tolower((int)*str1), c2 = tolower((int)*str2); if (c1 != c2) return (c1 > c2) ? 1 : -1; if (!c1) return 0; @@ -381,7 +381,7 @@ int strncasecmp(const char *str1, const char *str2, size_t len) { while (len--) { - const unsigned char c1 = tolower(*str1), c2 = tolower(*str2); + const unsigned char c1 = tolower((int)*str1), c2 = tolower((int)*str2); if (c1 != c2) return (c1 > c2) ? 1 : -1; if (!c1) return 0; @@ -495,7 +495,7 @@ char *strcasestr(const char *haystack, const char *needle) { const char *n = needle; const char *h = haystack; - while (*n && *h && tolower(*n) == tolower(*h)) + while (*n && *h && tolower((int)*n) == tolower((int)*h)) n++, h++; if (!*n) return (char *)haystack; |