diff options
Diffstat (limited to 'firmware/zpu/lib/net_common.c')
-rw-r--r-- | firmware/zpu/lib/net_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/zpu/lib/net_common.c b/firmware/zpu/lib/net_common.c index 698ed97f4..42e365393 100644 --- a/firmware/zpu/lib/net_common.c +++ b/firmware/zpu/lib/net_common.c @@ -201,7 +201,7 @@ send_pkt( //create a list of all buffers to copy const void *buffs[] = {&ctrl_word, &ehdr, buf0, buf1, buf2}; - size_t lens[] = {sizeof(ctrl_word), sizeof(ehdr), len0, len1, len2}; + size_t lens[] = {sizeof(ctrl_word), sizeof(ehdr), len0, len1, (len2 + 3) & ~3}; //copy each buffer into the out buffer for (size_t i = 0; i < sizeof(buffs)/sizeof(buffs[0]); i++){ |