From: Jim Meyering Date: Mon, 27 Feb 1995 14:07:58 +0000 (+0000) Subject: (main, set_window_size): Use memset instead of bzero. X-Git-Tag: textutils-1_12_1~279 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=617dbb12c2a6a7c5fbc187c7bc42428220fe0aab;p=thirdparty%2Fcoreutils.git (main, set_window_size): Use memset instead of bzero. --- diff --git a/src/stty.c b/src/stty.c index 964a40a989..971eb14d5e 100644 --- a/src/stty.c +++ b/src/stty.c @@ -720,7 +720,7 @@ main (argc, argv) /* Initialize to all zeroes so there is no risk memcmp will report a spurious difference in an uninitialized portion of the structure. */ - bzero (&mode, sizeof (mode)); + memset (&mode, 0, sizeof (mode)); if (tcgetattr (0, &mode)) error (1, errno, "standard input"); @@ -887,7 +887,7 @@ main (argc, argv) /* Initialize to all zeroes so there is no risk memcmp will report a spurious difference in an uninitialized portion of the structure. */ - bzero (&new_mode, sizeof (new_mode)); + memset (&new_mode, 0, sizeof (new_mode)); if (tcgetattr (0, &new_mode)) error (1, errno, "standard input"); @@ -1209,7 +1209,7 @@ set_window_size (rows, cols) { if (errno != EINVAL) error (1, errno, "standard input"); - bzero (&win, sizeof (win)); + memset (&win, 0, sizeof (win)); } if (rows >= 0)