about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-11-24 16:13:58 +0100
committerhexcoder- <heiko@hexco.de>2020-11-24 16:13:58 +0100
commited2f82eaf40a49d76d7615370ea8749c2f1fefaa (patch)
tree53d88fd5fc7f8328dde821d3ec1428d98419afc9 /src
parentcf30f52f255ec9ad5e70b73b65fff323d2184c77 (diff)
downloadafl++-ed2f82eaf40a49d76d7615370ea8749c2f1fefaa.tar.gz
fix compiler warning turned error on NetBSD
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c
index 95b3ee8a..b716b8c8 100644
--- a/src/afl-fuzz-run.c
+++ b/src/afl-fuzz-run.c
@@ -484,7 +484,7 @@ void sync_fuzzers(afl_state_t *afl) {
   DIR *          sd;
   struct dirent *sd_ent;
   u32            sync_cnt = 0, synced = 0, entries = 0;
-  u8             path[PATH_MAX + 256];
+  u8             path[PATH_MAX + 1 + NAME_MAX];
 
   sd = opendir(afl->sync_dir);
   if (!sd) { PFATAL("Unable to open '%s'", afl->sync_dir); }