Skip to content
Snippets Groups Projects
Commit 1b950f29 authored by Anjan Chanda's avatar Anjan Chanda
Browse files

account for head space in cmdu_realloc()

parent 4573d425
Branches
No related tags found
No related merge requests found
......@@ -336,7 +336,7 @@ struct cmdu_buff *cmdu_realloc(struct cmdu_buff *c, size_t size)
if (size < origsize)
return c;
n = realloc((uint8_t *)c, size);
n = realloc((uint8_t *)c, sizeof(*f) + size + CMDU_RESERVE_HEADSPACE);
if (!n)
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment