about summary refs log tree commit diff
path: root/examples/persistent_demo/test-instr.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-01 13:15:16 +0200
committervan Hauser <vh@thc.org>2020-06-01 13:15:16 +0200
commit15c0ad60c530906131fc089d8f5b05710c69f109 (patch)
treebd5825ed9a611ed234b3aeec28b37e5ed35fa621 /examples/persistent_demo/test-instr.c
parent0de25f08ba2e39f680a1440e9b84ee9cf4136f9a (diff)
downloadafl++-15c0ad60c530906131fc089d8f5b05710c69f109.tar.gz
minimal changes to a test
Diffstat (limited to 'examples/persistent_demo/test-instr.c')
-rw-r--r--examples/persistent_demo/test-instr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/persistent_demo/test-instr.c b/examples/persistent_demo/test-instr.c
index cd1c9b0e..4cd07102 100644
--- a/examples/persistent_demo/test-instr.c
+++ b/examples/persistent_demo/test-instr.c
@@ -36,7 +36,7 @@ int main(int argc, char **argv) {
     int fd_doc = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0600);
     if (fd_doc >= 0) {
 
-      if (write(fd_doc, __afl_fuzz_ptr, __afl_fuzz_len) != __afl_fuzz_len) {
+      if (write(fd_doc, buf, len) != __afl_fuzz_len) {
 
         fprintf(stderr, "write of mutation file failed: %s\n", fn);
         unlink(fn);