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.
This commit is contained in:
Janne Grunau 2023-02-01 14:24:12 +01:00
parent d4b3e758da
commit b67063abba

View file

@ -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);