about summary refs log tree commit diff
path: root/crypt
diff options
context:
space:
mode:
Diffstat (limited to 'crypt')
-rw-r--r--crypt/md5-crypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypt/md5-crypt.c b/crypt/md5-crypt.c
index 6340502193..c842be503c 100644
--- a/crypt/md5-crypt.c
+++ b/crypt/md5-crypt.c
@@ -226,9 +226,9 @@ __md5_crypt_r (key, salt, buffer, buflen)
   memset (&ctx, '\0', sizeof (ctx));
   memset (&alt_ctx, '\0', sizeof (alt_ctx));
   if (key_copied)
-    memset (key, '\0', key_len);
+    memset ((char *) key, '\0', key_len);
   if (salt_copied)
-    memset (salt, '\0', salt_len);
+    memset ((char *) salt, '\0', salt_len);
 
   return buffer;
 }