diff options
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/clientloop.c b/clientloop.c index d321cb8bf..36a4a64ae 100644 --- a/clientloop.c +++ b/clientloop.c | |||
@@ -434,10 +434,10 @@ client_check_window_change(void) | |||
434 | if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0) | 434 | if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0) |
435 | return; | 435 | return; |
436 | packet_start(SSH_CMSG_WINDOW_SIZE); | 436 | packet_start(SSH_CMSG_WINDOW_SIZE); |
437 | packet_put_int(ws.ws_row); | 437 | packet_put_int((u_int)ws.ws_row); |
438 | packet_put_int(ws.ws_col); | 438 | packet_put_int((u_int)ws.ws_col); |
439 | packet_put_int(ws.ws_xpixel); | 439 | packet_put_int((u_int)ws.ws_xpixel); |
440 | packet_put_int(ws.ws_ypixel); | 440 | packet_put_int((u_int)ws.ws_ypixel); |
441 | packet_send(); | 441 | packet_send(); |
442 | } | 442 | } |
443 | } | 443 | } |
@@ -1881,10 +1881,10 @@ client_session2_setup(int id, int want_tty, int want_subsystem, | |||
1881 | 1881 | ||
1882 | channel_request_start(id, "pty-req", 0); | 1882 | channel_request_start(id, "pty-req", 0); |
1883 | packet_put_cstring(term != NULL ? term : ""); | 1883 | packet_put_cstring(term != NULL ? term : ""); |
1884 | packet_put_int(ws.ws_col); | 1884 | packet_put_int((u_int)ws.ws_col); |
1885 | packet_put_int(ws.ws_row); | 1885 | packet_put_int((u_int)ws.ws_row); |
1886 | packet_put_int(ws.ws_xpixel); | 1886 | packet_put_int((u_int)ws.ws_xpixel); |
1887 | packet_put_int(ws.ws_ypixel); | 1887 | packet_put_int((u_int)ws.ws_ypixel); |
1888 | tio = get_saved_tio(); | 1888 | tio = get_saved_tio(); |
1889 | tty_make_modes(-1, tiop != NULL ? tiop : &tio); | 1889 | tty_make_modes(-1, tiop != NULL ? tiop : &tio); |
1890 | packet_send(); | 1890 | packet_send(); |