Skip to content

Commit d7d8afa

Browse files
committed
fix afl-gcc help output
1 parent 01fcee1 commit d7d8afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/afl-gcc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ int main(int argc, char **argv) {
415415
"AFL_KEEP_ASSEMBLY: leave instrumented assembly files\n"
416416
"AFL_AS_FORCE_INSTRUMENT: force instrumentation for asm sources\n";
417417

418-
if (argc == 2 && strcmp(argv[1], "-h") == 0) {
418+
if (argc == 2 && strncmp(argv[1], "-h", 2) == 0) {
419419

420420
printf("afl-cc" VERSION " by Michal Zalewski\n\n");
421421
printf("%s \n\n", argv[0]);

0 commit comments

Comments
 (0)