diff options
author | hexcoder- <heiko@hexco.de> | 2020-04-18 10:48:24 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-04-21 13:14:34 +0200 |
commit | 358f17f61572991474e305b83aeafbfb937b8a22 (patch) | |
tree | 796def2e076cd59f11340db2eef5d6e67f75b522 | |
parent | b109e31722d1edb5269b6395928cdc076979323b (diff) | |
download | afl++-358f17f61572991474e305b83aeafbfb937b8a22.tar.gz |
small portability fix (32-bit) for warning (size_t %lu -> %zu)
-rw-r--r-- | qemu_mode/libcompcov/libcompcov.so.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu_mode/libcompcov/libcompcov.so.c b/qemu_mode/libcompcov/libcompcov.so.c index 619bcc50..bffdd5d8 100644 --- a/qemu_mode/libcompcov/libcompcov.so.c +++ b/qemu_mode/libcompcov/libcompcov.so.c @@ -166,7 +166,7 @@ static void __compcov_trace(u64 cur_loc, const u8 *v0, const u8 *v1, size_t n) { if (debug_fd != 1) { char debugbuf[4096]; - snprintf(debugbuf, sizeof(debugbuf), "0x%llx %s %s %lu\n", cur_loc, + snprintf(debugbuf, sizeof(debugbuf), "0x%llx %s %s %zu\n", cur_loc, v0 == NULL ? "(null)" : (char *)v0, v1 == NULL ? "(null)" : (char *)v1, n); write(debug_fd, debugbuf, strlen(debugbuf)); |