Remove unnecessary malloc cast in fe-fuzz

We compile this as C code, so the cast is unnecessary.
This commit is contained in:
Joseph Bisch 2017-11-02 11:44:57 -04:00
commit f9d69597ef

View file

@ -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';