summaryrefslogtreecommitdiff
path: root/lib/ipmi_channel.c
diff options
context:
space:
mode:
authorZdenek Styblik <stybla@turnovfree.net>2014-12-23 05:46:28 +0100
committerZdenek Styblik <stybla@turnovfree.net>2014-12-23 05:46:28 +0100
commit0a1f5c03e52aaf0394180121c0de04216747662d (patch)
tree3a4f2fbddf5f2150d7eeac643a6a9f55caf7be15 /lib/ipmi_channel.c
parent140add9d7717783efc02fb234382201d34a492a4 (diff)
downloadipmitool-0a1f5c03e52aaf0394180121c0de04216747662d.tar.gz
Replace deprecated bzero() with memset()
Commit replaces deprecated bzero() with memset().
Diffstat (limited to 'lib/ipmi_channel.c')
-rw-r--r--lib/ipmi_channel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ipmi_channel.c b/lib/ipmi_channel.c
index 8dcf595..9b8c2a9 100644
--- a/lib/ipmi_channel.c
+++ b/lib/ipmi_channel.c
@@ -68,8 +68,7 @@ ipmi_1_5_authtypes(uint8_t n)
uint32_t i;
static char supportedTypes[128];
- bzero(supportedTypes, 128);
-
+ memset(supportedTypes, 0, sizeof(supportedTypes));
for (i = 0; ipmi_authtype_vals[i].val != 0; i++) {
if (n & ipmi_authtype_vals[i].val) {
strcat(supportedTypes, ipmi_authtype_vals[i].str);