aboutsummaryrefslogtreecommitdiff
path: root/include/afl-prealloc.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-28 23:47:57 +0200
committervan Hauser <vh@thc.org>2020-06-28 23:47:57 +0200
commitc25a602a0370f484e32adbf186290d2504cf3f12 (patch)
treebdde8467d75d1bcc27321b8d4eeea19c623542ad /include/afl-prealloc.h
parent81974c4d5e63211744153f2ebcfb246046edbc5b (diff)
downloadAFLplusplus-c25a602a0370f484e32adbf186290d2504cf3f12.tar.gz
less problematic definitions
Diffstat (limited to 'include/afl-prealloc.h')
-rw-r--r--include/afl-prealloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/afl-prealloc.h b/include/afl-prealloc.h
index 5e5d7b85..a9de3ba2 100644
--- a/include/afl-prealloc.h
+++ b/include/afl-prealloc.h
@@ -60,7 +60,7 @@ typedef enum prealloc_status {
\
if ((prealloc_counter) >= (prealloc_size)) { \
\
- el_ptr = malloc(sizeof(*el_ptr)); \
+ el_ptr = (element_t *) malloc(sizeof(*el_ptr)); \
if (!el_ptr) { FATAL("error in list.h -> out of memory for element!"); } \
el_ptr->pre_status = PRE_STATUS_MALLOC; \
\