summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-02-27 14:07:58 +0000
committerJim Meyering <jim@meyering.net>1995-02-27 14:07:58 +0000
commit617dbb12c2a6a7c5fbc187c7bc42428220fe0aab (patch)
tree957a00a03b0cc2c68c75df49765eb140e4e37ffa /src
parent5d49fcbeaad3c22244ac93b53affc75b26c91a1c (diff)
downloadcoreutils-617dbb12c2a6a7c5fbc187c7bc42428220fe0aab.tar.xz
(main, set_window_size): Use memset instead of bzero.
Diffstat (limited to 'src')
-rw-r--r--src/stty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stty.c b/src/stty.c
index 964a40a98..971eb14d5 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)