summaryrefslogtreecommitdiffstats
path: root/src/keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keys.c')
-rw-r--r--src/keys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keys.c b/src/keys.c
index dc0d95f..2bfb97d 100644
--- a/src/keys.c
+++ b/src/keys.c
@@ -135,7 +135,7 @@ keys_init (void)
for (i = 0; i < MAXKEYVAL; i++)
actions[i] = KEY_UNDEF;
- bzero (keys, NBKEYS);
+ memset (keys, 0, NBKEYS);
}
void
@@ -442,7 +442,7 @@ keys_format_label (char *key, int keylen)
if (keylen > BUFSIZ)
return NULL;
- bzero (fmtkey, sizeof (fmtkey));
+ memset (fmtkey, 0, sizeof(fmtkey));
if (len == 0)
strncpy (fmtkey, "?", sizeof (fmtkey));
else if (len <= keylen)