From: Jim Meyering Date: Thu, 6 May 2004 14:48:07 +0000 (+0000) Subject: (do_wipefd): Use xnmalloc, rather than xmalloc. X-Git-Tag: v5.3.0~1614 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=433aacf5c698a538e149eb431c15196f36264490;p=thirdparty%2Fcoreutils.git (do_wipefd): Use xnmalloc, rather than xmalloc. --- 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)