From 399598fd319aa0a7de29c7600839c0ba65351a70 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Mon, 23 May 2016 20:07:49 +0200 Subject: [PATCH] Removed use of deprecated bzero() --- src/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tty.c b/src/tty.c index 36de922..ca395fe 100644 --- a/src/tty.c +++ b/src/tty.c @@ -124,7 +124,7 @@ void stdout_configure(void) } /* Prepare new stdout settings */ - bzero(&new_stdout, sizeof(new_stdout)); + memset(&new_stdout, 0, sizeof(new_stdout)); /* Control, input, output, local modes for stdout */ new_stdout.c_cflag = 0; @@ -158,7 +158,7 @@ void tty_configure(void) { unsigned int baudrate; - bzero(&tio, sizeof(tio)); + memset(&tio, 0, sizeof(tio)); /* Set speed */ switch (option.baudrate)