diff --git a/src/pty/ntapi_pty_ioctl.c b/src/pty/ntapi_pty_ioctl.c index f828753..806a748 100644 --- a/src/pty/ntapi_pty_ioctl.c +++ b/src/pty/ntapi_pty_ioctl.c @@ -66,13 +66,13 @@ int32_t __stdcall __ntapi_pty_ioctl( msg.data.ctlinfo.ctxarg[3] = input->ctxarg[3]; __ntapi->tt_generic_memcpy( - (char *)&input->terminfo, (char *)&msg.data.ctlinfo.terminfo, + (char *)&input->terminfo, sizeof(input->terminfo)); __ntapi->tt_generic_memcpy( - (char *)&input->winsize, (char *)&msg.data.ctlinfo.winsize, + (char *)&input->winsize, sizeof(input->winsize)); if ((status = __ntapi->zw_request_wait_reply_port(pty->hport,&msg,&msg)))