From e0f5d8bc615d64722ce5e8b07825516167a1c88b Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 29 Aug 2015 10:36:31 -0400 Subject: oopsy daisy. --- src/pty/ntapi_pty_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))) -- cgit v1.2.3