summaryrefslogtreecommitdiff
path: root/libfshelp/fetch-root.c
diff options
context:
space:
mode:
Diffstat (limited to 'libfshelp/fetch-root.c')
-rw-r--r--libfshelp/fetch-root.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index 45c7dd09..712c11f4 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -121,9 +121,9 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
goto return_error;
}
- bzero (ports, INIT_PORT_MAX * sizeof (mach_port_t));
- bzero (fds, (STDERR_FILENO + 1) * sizeof (mach_port_t));
- bzero (ints, INIT_INT_MAX * sizeof (int));
+ memset (ports, 0, INIT_PORT_MAX * sizeof (mach_port_t));
+ memset (fds, 0, (STDERR_FILENO + 1) * sizeof (mach_port_t));
+ memset (ints, 0, INIT_INT_MAX * sizeof (int));
ports[INIT_PORT_CWDIR] = dotdot;
ports[INIT_PORT_CRDIR] = reauth (getcrdir ());