mirror of https://github.com/martanne/abduco
Fix length of MSG_RESIZE packet
We no longer send the complete struct winsize.
This commit is contained in:
parent
7ee5e79cf5
commit
482237919b
2
client.c
2
client.c
|
|
@ -79,7 +79,7 @@ static int client_mainloop(void) {
|
||||||
Packet pkt = {
|
Packet pkt = {
|
||||||
.type = MSG_RESIZE,
|
.type = MSG_RESIZE,
|
||||||
.u = { .ws = { .rows = ws.ws_row, .cols = ws.ws_col } },
|
.u = { .ws = { .rows = ws.ws_row, .cols = ws.ws_col } },
|
||||||
.len = sizeof(ws),
|
.len = sizeof(pkt.u.ws),
|
||||||
};
|
};
|
||||||
if (client_send_packet(&pkt))
|
if (client_send_packet(&pkt))
|
||||||
client.need_resize = false;
|
client.need_resize = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue