diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-06 14:48:07 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-06 14:48:07 +0000 |
commit | 433aacf5c698a538e149eb431c15196f36264490 (patch) | |
tree | 7925606a979abe45a629c0dc12f4fff92a63ee1b /src/shred.c | |
parent | 1c4154dbb07956bcd71631dd19ffbb72143d9791 (diff) | |
download | coreutils-433aacf5c698a538e149eb431c15196f36264490.tar.xz |
(do_wipefd): Use xnmalloc, rather than xmalloc.
Diffstat (limited to 'src/shred.c')
-rw-r--r-- | src/shred.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shred.c b/src/shred.c index 2c34c11bc..dd38bac8a 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) |