summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/amd64-fbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/truss/amd64-fbsd.c')
-rw-r--r--usr.bin/truss/amd64-fbsd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/truss/amd64-fbsd.c b/usr.bin/truss/amd64-fbsd.c
index d43f929..f7c949a 100644
--- a/usr.bin/truss/amd64-fbsd.c
+++ b/usr.bin/truss/amd64-fbsd.c
@@ -191,8 +191,7 @@ amd64_syscall_entry(struct trussinfo *trussinfo, int nargs) {
fsc.nargs = nargs;
}
- fsc.s_args = malloc((1+fsc.nargs) * sizeof(char*));
- memset(fsc.s_args, 0, fsc.nargs * sizeof(char*));
+ fsc.s_args = calloc(1, (1+fsc.nargs) * sizeof(char*));
fsc.sc = sc;
/*
OpenPOWER on IntegriCloud