From b67063abbacdfff4315d947cff9f63b364247faf Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Wed, 1 Feb 2023 14:24:12 +0100 Subject: [PATCH] HACK: dcp/afk: fix inline size based on macos trace not really looked into this discrepancy but my best guess is that the retcode should not be counted towards the payload size. --- src/afk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afk.c b/src/afk.c index 77d5472e..5369d5b0 100644 --- a/src/afk.c +++ b/src/afk.c @@ -440,7 +440,7 @@ static int afk_epic_handle_std_service(afk_epic_ep_t *epic, int channel, struct sub->type = CODE_STD_SERVICE; sub->seq = sub_seq; // service->seq++; sub->flags = 0x08; - sub->inline_len = payload_size; + sub->inline_len = payload_size - 4; memcpy(msg + sizeof(struct epic_hdr) + sizeof(struct epic_sub_hdr), reply, payload_size);