From 433aacf5c698a538e149eb431c15196f36264490 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 May 2004 14:48:07 +0000 Subject: [PATCH] (do_wipefd): Use xnmalloc, rather than xmalloc. --- src/shred.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shred.c b/src/shred.c index 2c34c11bc9..dd38bac8a0 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1201,7 +1201,7 @@ do_wipefd (int fd, char const *qname, struct isaac_state *s, } /* Allocate pass array */ - passarray = xmalloc (flags->n_iterations * sizeof (int)); + passarray = xnmalloc (flags->n_iterations, sizeof *passarray); size = flags->size; if (size == -1) -- 2.47.3