(correct_password): Use memset instead of bzero.

This commit is contained in:
Jim Meyering 1995-02-27 14:09:10 +00:00
parent 55eef5ace0
commit 742f505ce0
1 changed files with 1 additions and 1 deletions

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;
}