Skip to content
Snippets Groups Projects
Commit 499c2eb2 authored by Armin Luntzer's avatar Armin Luntzer
Browse files

fix packet size allocation

parent db15dc02
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ uint8_t *gresb_create_host_data_pkt(const uint8_t *data, uint32_t len) ...@@ -139,7 +139,7 @@ uint8_t *gresb_create_host_data_pkt(const uint8_t *data, uint32_t len)
struct host_to_gresb_pkt *pkt; struct host_to_gresb_pkt *pkt;
pkt = malloc(sizeof(struct host_to_gresb_pkt)); pkt = malloc(sizeof(struct host_to_gresb_pkt) + len);
if (!pkt) if (!pkt)
return NULL; return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment