From f9d69597ef1e204640d5ce104061717aca0d213a Mon Sep 17 00:00:00 2001 From: Joseph Bisch Date: Thu, 2 Nov 2017 11:44:57 -0400 Subject: Remove unnecessary malloc cast in fe-fuzz We compile this as C code, so the cast is unnecessary. --- src/fe-fuzz/irc/core/event-get-params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fe-fuzz/irc') 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'; -- cgit v1.2.3