(correct_password): Use memset instead of bzero.
This commit is contained in:
parent
55eef5ace0
commit
742f505ce0
|
@ -344,7 +344,7 @@ correct_password (pw)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
encrypted = crypt (unencrypted, correct);
|
encrypted = crypt (unencrypted, correct);
|
||||||
bzero (unencrypted, strlen (unencrypted));
|
memset (unencrypted, 0, strlen (unencrypted));
|
||||||
return strcmp (encrypted, correct) == 0;
|
return strcmp (encrypted, correct) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue