summaryrefslogtreecommitdiff
path: root/src/keys.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-02-19 01:19:48 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-02-19 01:41:01 +0100
commit8892bb3625a1f91f121fd98763a82c2cb0c0f67a (patch)
treea8007c0c5e029645e289eabfd6ecb50032e633e8 /src/keys.c
parentc17b535a33f9388e7eb183c3e1a0971259f4a5e6 (diff)
downloadcalcurse-8892bb3625a1f91f121fd98763a82c2cb0c0f67a.zip
Remove all usages of bzero() and bcopy()
The bzero() and bcopy() functions are deprecated and were removed from the POSIX standard in IEEE Std. 1003.1-2008. Remove all usages of bzero()/bcopy() and replace them by appropriate memset()/memmove() calls. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
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)