From 30d09ddbedec96bab5cb18e0a75107dba8f9142e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 27 Feb 1995 14:09:10 +0000 Subject: [PATCH] (correct_password): Use memset instead of bzero. --- src/su.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/su.c b/src/su.c index b10fd15..2edbf60 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; } -- 2.7.4