mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-20 14:15:31 +00:00
...
This commit is contained in:
parent
bd918569ba
commit
26c1902e1e
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ queue_payload_to_child(id_type id, uint32_t client_id, PendingData *pending, con
|
|||
char *buf = malloc(header_sz + data_sz - offset);
|
||||
if (!buf) fatal("Out of memory");
|
||||
memcpy(buf, header, header_sz);
|
||||
if (data_sz - offset) memcpy(buf + header_sz, data, data_sz - offset);
|
||||
if (data_sz - offset) memcpy(buf + header_sz, data + offset, data_sz - offset);
|
||||
PendingEntry *e = &pending->items[pending->count++];
|
||||
e->buf = buf; e->header_sz = header_sz; e->data_sz = data_sz - offset;
|
||||
e->as_base64 = as_base64; e->client_id = client_id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue