From 9bf6652c2c7f323dda044f58a352bd079c033f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Breitbart?= Date: Thu, 23 Mar 2017 22:57:52 +0100 Subject: [PATCH] fixes #54 --- src/unix/pty.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix/pty.cc b/src/unix/pty.cc index 9215ee3..a2f1a71 100644 --- a/src/unix/pty.cc +++ b/src/unix/pty.cc @@ -202,7 +202,8 @@ NAN_METHOD(PtyFork) { winp.ws_ypixel = 0; // termios - struct termios* term = new termios(); + struct termios t = termios(); + struct termios *term = &t; #if defined(IUTF8) term->c_iflag = ICRNL | IXON | IXANY | IMAXBEL | BRKINT | IUTF8; #else