1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-29 03:50:45 +02:00

(correct_password): Use memset instead of bzero.

This commit is contained in:
Jim Meyering
1995-02-27 14:09:10 +00:00
parent 617dbb12c2
commit 30d09ddbed
+1 -1
View File
@@ -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;
}