about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2022-03-30 20:32:51 +0200
committerhexcoder- <heiko@hexco.de>2022-03-30 20:32:51 +0200
commit772e33d5500d80f913f7183c616b2eb222b15fc9 (patch)
tree97eaca4772832de221ff540723eb9c9980337d47 /src
parent77a3abfa5e75228163bb4cf6008f90e436424e64 (diff)
downloadafl++-772e33d5500d80f913f7183c616b2eb222b15fc9.tar.gz
avoid compiler warning (format-truncation), needed for make DEBUG=1 all
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c
index 971ac494..99f37cbf 100644
--- a/src/afl-fuzz-bitmap.c
+++ b/src/afl-fuzz-bitmap.c
@@ -776,7 +776,7 @@ save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) {
 
     u8 fn_log[PATH_MAX];
 
-    snprintf(fn_log, PATH_MAX, "%s.log", fn);
+    (void)(snprintf(fn_log, PATH_MAX, "%s.log", fn) + 1);
     fd = open(fn_log, O_WRONLY | O_CREAT | O_EXCL, DEFAULT_PERMISSION);
     if (unlikely(fd < 0)) { PFATAL("Unable to create '%s'", fn_log); }