aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
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;