mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
avoid compiler warning (format-truncation), needed for make DEBUG=1 all
This commit is contained in:
parent
77a3abfa5e
commit
772e33d550
@ -776,7 +776,7 @@ save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) {
|
|||||||
|
|
||||||
u8 fn_log[PATH_MAX];
|
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);
|
fd = open(fn_log, O_WRONLY | O_CREAT | O_EXCL, DEFAULT_PERMISSION);
|
||||||
if (unlikely(fd < 0)) { PFATAL("Unable to create '%s'", fn_log); }
|
if (unlikely(fd < 0)) { PFATAL("Unable to create '%s'", fn_log); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user