toolchain: mxdbg: fix incorrect memory allocation size for packets
This commit is contained in:
@@ -6,7 +6,7 @@ struct packet *packet_create(size_t packet_size)
|
||||
{
|
||||
size_t real_packet_size = sizeof(struct packet) + packet_size
|
||||
- sizeof(struct mxdbg_packet);
|
||||
return calloc(1, packet_size);
|
||||
return calloc(1, real_packet_size);
|
||||
}
|
||||
|
||||
void packet_destroy(struct packet *packet)
|
||||
|
||||
Reference in New Issue
Block a user