summaryrefslogtreecommitdiff
path: root/kern/zalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/zalloc.c')
-rw-r--r--kern/zalloc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/zalloc.c b/kern/zalloc.c
index 18239be..48fbb32 100644
--- a/kern/zalloc.c
+++ b/kern/zalloc.c
@@ -34,6 +34,8 @@
* data blocks for which quick allocation/deallocation is possible.
*/
+#include <string.h>
+
#include <kern/macro_help.h>
#include <kern/sched.h>
#include <kern/time_out.h>
@@ -942,7 +944,7 @@ kern_return_t host_zone_info(host, namesp, namesCntp, infop, infoCntp)
used = max_zones * sizeof *names;
if (used != names_size)
- bzero((char *) (names_addr + used), names_size - used);
+ memset((char *) (names_addr + used), 0, names_size - used);
kr = vm_map_copyin(ipc_kernel_map, names_addr, names_size,
TRUE, &copy);
@@ -959,7 +961,7 @@ kern_return_t host_zone_info(host, namesp, namesCntp, infop, infoCntp)
used = max_zones * sizeof *info;
if (used != info_size)
- bzero((char *) (info_addr + used), info_size - used);
+ memset((char *) (info_addr + used), 0, info_size - used);
kr = vm_map_copyin(ipc_kernel_map, info_addr, info_size,
TRUE, &copy);