From c9b8482030929f53937e32fce63c78a4a0acadfd Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Mon, 2 Apr 2018 13:44:37 +0100 Subject: some fixes and support for syslog logging --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 0f8b9bb..746ab82 100644 --- a/src/util.c +++ b/src/util.c @@ -135,7 +135,7 @@ default_termios (struct termios *termios) void client_termios (struct termios *termios) { - memset (termios, 0, sizeof (termios)); + memset (termios, 0, sizeof (*termios)); termios->c_iflag = ICRNL | IXON | PARMRK | INPCK; termios->c_oflag = OPOST | ONLCR | NL0 | CR0 | TAB0 | BS0 | VT0 | FF0; -- cgit v1.2.3