Fix length of MSG_RESIZE packet

We no longer send the complete struct winsize.
This commit is contained in:
Marc André Tanner 2017-06-27 08:49:22 +02:00
parent 7ee5e79cf5
commit 482237919b
1 changed files with 1 additions and 1 deletions

View File

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