about summary refs log tree commit diff
path: root/test-instr.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-06-17 18:47:13 +0200
committervan Hauser <vh@thc.org>2019-06-17 18:47:13 +0200
commitdb3cc11195af0dfae7c4bfcac78c75f48fbaa430 (patch)
tree9d33d70c07c642235153e2d7a3d54b8c30d8fd50 /test-instr.c
parentd64efa6a68f8d0f35f7fcb910c02ae4fdae86cd6 (diff)
downloadafl++-db3cc11195af0dfae7c4bfcac78c75f48fbaa430.tar.gz
minor documentation update
Diffstat (limited to 'test-instr.c')
-rw-r--r--test-instr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test-instr.c b/test-instr.c
index 09a1c9f7..1b978c55 100644
--- a/test-instr.c
+++ b/test-instr.c
@@ -22,15 +22,17 @@ int main(int argc, char** argv) {
 
   char buf[8];
 
-  if (read(0, buf, 8) < 1) {
+  if (read(0, buf, sizeof(buf)) < 1) {
     printf("Hum?\n");
     exit(1);
   }
 
   if (buf[0] == '0')
     printf("Looks like a zero to me!\n");
+  else if (buf[0] == '1')
+    printf("Pretty sure that is a one!\n");
   else
-    printf("A non-zero value? How quaint!\n");
+    printf("Neither one or zero? How quaint!\n");
 
   exit(0);