about summary refs log tree commit diff
path: root/include/common.h
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-03-31 02:41:11 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-01 13:10:07 +0200
commit582f5103d92dd8b7da1742c86d22f6b191743b6f (patch)
tree1d5b87ed6c0b0b4e1287ec14a5fdbdbfe84fbce8 /include/common.h
parentabef8599251f4d01349285a6c6ed0f75a54272b8 (diff)
downloadafl++-582f5103d92dd8b7da1742c86d22f6b191743b6f.tar.gz
enabled fortify source
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index e8558e24..db102777 100644
--- a/include/common.h
+++ b/include/common.h
@@ -426,7 +426,7 @@ static inline u32 read_timed(s32 fd, void *buf, size_t len, u32 timeout_ms) {
 
     }
 
-    len_read = read(fd, buf + len_read, len - len_read);
+    len_read = read(fd, ((u8 *)buf) + len_read, len - len_read);
     if (!len_read) { return 0; }
     read_total += len_read;