abduco

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 482237919b80fb4846460e00ebfa326b22ee6207
parent 7ee5e79cf51c645c7c2acc0b907d6cf1346122cb
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 27 Jun 2017 08:49:22 +0200

Fix length of MSG_RESIZE packet

We no longer send the complete struct winsize.

Diffstat:
client.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client.c b/client.c @@ -79,7 +79,7 @@ static int client_mainloop(void) { Packet pkt = { .type = MSG_RESIZE, .u = { .ws = { .rows = ws.ws_row, .cols = ws.ws_col } }, - .len = sizeof(ws), + .len = sizeof(pkt.u.ws), }; if (client_send_packet(&pkt)) client.need_resize = false;