diff --git a/lib/Fuzzer/test/InitializeTest.cpp b/lib/Fuzzer/test/InitializeTest.cpp index 0d6a0fda093..df1117c1ec5 100644 --- a/lib/Fuzzer/test/InitializeTest.cpp +++ b/lib/Fuzzer/test/InitializeTest.cpp @@ -20,7 +20,7 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (Size == strlen(argv0) && - !strncmp(reinterpret_cast(Data), argv0, Size)) { + !strnstr(reinterpret_cast(Data), argv0, Size)) { fprintf(stderr, "BINGO %s\n", argv0); exit(1); }