From e0f5d8bc615d64722ce5e8b07825516167a1c88b Mon Sep 17 00:00:00 2001 From: midipix Date: Sep 26 2015 15:19:41 +0000 Subject: oopsy daisy. --- 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)))