mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-18 09:53:04 +00:00
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:
parent
d4b3e758da
commit
b67063abba
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue