summaryrefslogtreecommitdiff
path: root/src/su.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/su.c')
-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;
}