diff options
author | Zdenek Styblik <stybla@turnovfree.net> | 2014-12-23 05:46:28 +0100 |
---|---|---|
committer | Zdenek Styblik <stybla@turnovfree.net> | 2014-12-23 05:46:28 +0100 |
commit | 0a1f5c03e52aaf0394180121c0de04216747662d (patch) | |
tree | 3a4f2fbddf5f2150d7eeac643a6a9f55caf7be15 /lib/ipmi_channel.c | |
parent | 140add9d7717783efc02fb234382201d34a492a4 (diff) | |
download | ipmitool-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.c | 3 |
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); |