summaryrefslogtreecommitdiff
path: root/src/fe-fuzz
diff options
context:
space:
mode:
authorJoseph Bisch <joseph.bisch@gmail.com>2017-11-02 11:44:57 -0400
committerJoseph Bisch <joseph.bisch@gmail.com>2017-11-02 11:44:57 -0400
commitf9d69597ef1e204640d5ce104061717aca0d213a (patch)
treeb8f26f67360ed36b39134ba7c03b13724c053645 /src/fe-fuzz
parent84fc92635acd4d513049794fdbc574b79ac1c5d5 (diff)
downloadirssi-f9d69597ef1e204640d5ce104061717aca0d213a.zip
Remove unnecessary malloc cast in fe-fuzz
We compile this as C code, so the cast is unnecessary.
Diffstat (limited to 'src/fe-fuzz')
-rw-r--r--src/fe-fuzz/irc/core/event-get-params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-fuzz/irc/core/event-get-params.c b/src/fe-fuzz/irc/core/event-get-params.c
index 89eb89d2..fc21bbeb 100644
--- a/src/fe-fuzz/irc/core/event-get-params.c
+++ b/src/fe-fuzz/irc/core/event-get-params.c
@@ -52,7 +52,7 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
return 0;
}
uint8_t count = *data;
- char *copy = (char *)malloc(sizeof(char)*(size-1+1));
+ char *copy = malloc(sizeof(char)*(size-1+1));
memcpy(copy, data+1, size-1);
copy[size-1] = '\0';