1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
parent 84fc92635a
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';