Allowing fill functions to set correct headers

This commit is contained in:
Andrew Burger
2020-06-25 17:02:57 -07:00
parent b6fbb51d7d
commit ac9076761a
4 changed files with 39 additions and 5 deletions
+1 -1
View File
@@ -526,7 +526,7 @@ uint32_t pullarray8(uint8_t **in, uint8_t out[], uint32_t max_len, uint32_t len,
return 0;
}
if((end - out) >= sizeof(uint8_t) * len)
if((end - (*in)) >= sizeof(uint8_t) * len)
{
memcpy(out, (*in), len);
(*in)+=len;