summaryrefslogtreecommitdiff
path: root/src/shred.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-06 14:48:07 +0000
committerJim Meyering <jim@meyering.net>2004-05-06 14:48:07 +0000
commit433aacf5c698a538e149eb431c15196f36264490 (patch)
tree7925606a979abe45a629c0dc12f4fff92a63ee1b /src/shred.c
parent1c4154dbb07956bcd71631dd19ffbb72143d9791 (diff)
downloadcoreutils-433aacf5c698a538e149eb431c15196f36264490.tar.xz
(do_wipefd): Use xnmalloc, rather than xmalloc.
Diffstat (limited to 'src/shred.c')
-rw-r--r--src/shred.c2
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)