diff options
author | Joseph Bisch <joseph.bisch@gmail.com> | 2017-11-02 11:44:57 -0400 |
---|---|---|
committer | Joseph Bisch <joseph.bisch@gmail.com> | 2017-11-02 11:44:57 -0400 |
commit | f9d69597ef1e204640d5ce104061717aca0d213a (patch) | |
tree | b8f26f67360ed36b39134ba7c03b13724c053645 /src/fe-fuzz | |
parent | 84fc92635acd4d513049794fdbc574b79ac1c5d5 (diff) | |
download | irssi-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.c | 2 |
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'; |