Skip to content
Snippets Groups Projects
Commit 79ecd8d2 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

One last attempt... cast the whole thing to uint8_t and take a

pointer to an element.  No way gcc has a clue about what I'm doing
then.
parent e19fbb40
No related branches found
No related tags found
No related merge requests found
Pipeline #5689 failed
......@@ -287,7 +287,7 @@ sftp_tx_pkt_reset(sftp_tx_pkt_t *pktp)
if (!grow_tx(pktp, sizeof(var))) \
return false; \
sftp_tx_pkt_t pkt = *pktp; \
memcpy(&(&pkt->type)[pkt->used], &var, sizeof(var)); \
memcpy(&((uint8_t *)pkt)[pkt->user + offsetof(struct sftp_tx_pkt, type)], &var, sizeof(var)); \
pkt->used += sizeof(var); \
return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment