diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-11-24 16:33:34 +0100 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-11-24 16:33:34 +0100 |
commit | 777049389f3ad0d34d561955525fa786830d4100 (patch) | |
tree | e5daeb01fccafa12668e5e332432ce01678ac8b5 /fuzz | |
parent | 96d74948a3c2392a23192bc5178ceb4a9bee6235 (diff) | |
download | wget-777049389f3ad0d34d561955525fa786830d4100.tar.gz |
* fuzz/wget_read_hunk_fuzzer.c: Use cast to fix C++ error
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/wget_read_hunk_fuzzer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/wget_read_hunk_fuzzer.c b/fuzz/wget_read_hunk_fuzzer.c index 800cebd2..3b8ea3a5 100644 --- a/fuzz/wget_read_hunk_fuzzer.c +++ b/fuzz/wget_read_hunk_fuzzer.c @@ -189,7 +189,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) g_size = size; g_read = 0; - struct my_context *ctx = calloc(1, sizeof(struct my_context)); + struct my_context *ctx = (struct my_context *) calloc(1, sizeof(struct my_context)); fd_register_transport(99, &my_transport, ctx); while ((hunk = fd_read_hunk(99, response_head_terminator, 512, 65536))) |