diff options
Diffstat (limited to 'libfshelp')
-rw-r--r-- | libfshelp/fetch-root.c | 6 | ||||
-rw-r--r-- | libfshelp/start-translator.c | 2 |
2 files changed, 4 insertions, 4 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 ()); diff --git a/libfshelp/start-translator.c b/libfshelp/start-translator.c index ba5418ec..7f0ae70d 100644 --- a/libfshelp/start-translator.c +++ b/libfshelp/start-translator.c @@ -38,7 +38,7 @@ fshelp_start_translator (fshelp_open_fn_t underlying_open_fn, ports[i] = MACH_PORT_NULL; for (i = 0; i < STDERR_FILENO + 1; i++) fds[i] = MACH_PORT_NULL; - bzero (ints, INIT_INT_MAX * sizeof (int)); + memset (ints, 0, INIT_INT_MAX * sizeof(int)); ports[INIT_PORT_CWDIR] = getcwdir (); ports[INIT_PORT_CRDIR] = getcrdir (); |