summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-02-27 14:09:10 +0000
committerJim Meyering <jim@meyering.net>1995-02-27 14:09:10 +0000
commit30d09ddbedec96bab5cb18e0a75107dba8f9142e (patch)
tree016b0343994e561b59aa85e4283e8e75f6eaa059 /src
parent617dbb12c2a6a7c5fbc187c7bc42428220fe0aab (diff)
downloadcoreutils-30d09ddbedec96bab5cb18e0a75107dba8f9142e.tar.xz
(correct_password): Use memset instead of bzero.
Diffstat (limited to 'src')
-rw-r--r--src/su.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/su.c b/src/su.c
index b10fd15f5..2edbf60d6 100644
--- a/src/su.c
+++ b/src/su.c
@@ -344,7 +344,7 @@ correct_password (pw)
return 0;
}
encrypted = crypt (unencrypted, correct);
- bzero (unencrypted, strlen (unencrypted));
+ memset (unencrypted, 0, strlen (unencrypted));
return strcmp (encrypted, correct) == 0;
}