mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 10:08:07 +00:00
fix strncmp in tokencap
This commit is contained in:
@ -330,8 +330,8 @@ int strncmp(const char* str1, const char* str2, size_t len) {
|
|||||||
|
|
||||||
unsigned char c1 = *str1, c2 = *str2;
|
unsigned char c1 = *str1, c2 = *str2;
|
||||||
|
|
||||||
if (!c1) return 0;
|
|
||||||
if (c1 != c2) return (c1 > c2) ? 1 : -1;
|
if (c1 != c2) return (c1 > c2) ? 1 : -1;
|
||||||
|
if (!c1) return 0;
|
||||||
str1++;
|
str1++;
|
||||||
str2++;
|
str2++;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user