diff options
author | hexcoder- <heiko@hexco.de> | 2020-04-18 10:48:24 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-04-18 10:48:24 +0200 |
commit | 9e74a7dfe13b401a07f41719555c287649916d6d (patch) | |
tree | 796def2e076cd59f11340db2eef5d6e67f75b522 | |
parent | 0b5b888f824a41efa61b035d4d4695bc56c5bfc1 (diff) | |
download | afl++-9e74a7dfe13b401a07f41719555c287649916d6d.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)); |