mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue