From 772e33d5500d80f913f7183c616b2eb222b15fc9 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Wed, 30 Mar 2022 20:32:51 +0200 Subject: avoid compiler warning (format-truncation), needed for make DEBUG=1 all --- src/afl-fuzz-bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit 1.4.1