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:
parent
84fc92635a
commit
f9d69597ef
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user