diff options
author | van Hauser <vh@thc.org> | 2019-08-09 00:34:26 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2019-08-09 00:34:26 +0200 |
commit | 41d2e7d6b6ac1bab20f73e1e023c8450bbfc657e (patch) | |
tree | b4f0670fe450d32be87cdc94ed2d6dee0f097010 /test-instr.c | |
parent | 73d02f3a808903f02dd0b547e7db9ff00efdf6c5 (diff) | |
download | afl++-41d2e7d6b6ac1bab20f73e1e023c8450bbfc657e.tar.gz |
minor corrections
Diffstat (limited to 'test-instr.c')
-rw-r--r-- | test-instr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test-instr.c b/test-instr.c index 1b978c55..9107f15e 100644 --- a/test-instr.c +++ b/test-instr.c @@ -20,9 +20,12 @@ int main(int argc, char** argv) { - char buf[8]; + char buff[8]; + char *buf = buff; - if (read(0, buf, sizeof(buf)) < 1) { + if (argc > 1) + buf = argv[1]; + else if (read(0, buf, sizeof(buf)) < 1) { printf("Hum?\n"); exit(1); } |