toolchain: mxdbg: fix incorrect memory allocation size for packets

This commit is contained in:
2026-06-07 13:48:24 +01:00
parent 9af5aa2acf
commit 3f9e0abc49
+1 -1
View File
@@ -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)