aboutsummaryrefslogtreecommitdiff
path: root/test-instr.c
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-03 11:12:49 +0200
committerGitHub <noreply@github.com>2019-09-03 11:12:49 +0200
commitf3617bd83bcf4de3b10866faca4b83f566ee0e8f (patch)
tree6308bf840cdf24af50fdef4c216d6c9433cd021b /test-instr.c
parent3bfd88aabbf3fdf70cb053aa25944f32d2113d8f (diff)
parentd47ef88fcd842bd13923b1b519544fa2c8d6d0eb (diff)
downloadafl++-f3617bd83bcf4de3b10866faca4b83f566ee0e8f.tar.gz
Merge pull request #53 from vanhauser-thc/code-cleanup
Code cleanup
Diffstat (limited to 'test-instr.c')
-rw-r--r--test-instr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test-instr.c b/test-instr.c
index 9107f15e..71838462 100644
--- a/test-instr.c
+++ b/test-instr.c
@@ -20,14 +20,16 @@
int main(int argc, char** argv) {
- char buff[8];
- char *buf = buff;
+ char buff[8];
+ char* buf = buff;
if (argc > 1)
buf = argv[1];
else if (read(0, buf, sizeof(buf)) < 1) {
+
printf("Hum?\n");
exit(1);
+
}
if (buf[0] == '0')
@@ -40,3 +42,4 @@ int main(int argc, char** argv) {
exit(0);
}
+