diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-06 14:24:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-06 14:24:16 +0000 |
commit | 94c2794761bdca0b8523b279cf4cdb03bf343234 (patch) | |
tree | 2aae391e2683a49086ba1b2e84e8d9fd69b7cab3 | |
parent | 4de12cc0124f3574876763010b5f0c5cf9a67d91 (diff) | |
download | coreutils-94c2794761bdca0b8523b279cf4cdb03bf343234.tar.xz |
(elide_tail_bytes_pipe): Use xnmalloc, rather than xmalloc.
-rw-r--r-- | src/head.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/head.c b/src/head.c index ab6e96032..ee86ac01e 100644 --- a/src/head.c +++ b/src/head.c @@ -254,7 +254,7 @@ elide_tail_bytes_pipe (const char *filename, int fd, uintmax_t n_elide_0) size_t n_to_read = READ_BUFSIZE + n_elide; unsigned int i; char *b[2]; - b[0] = xmalloc (2 * n_to_read); + b[0] = xnmalloc (2, n_to_read); b[1] = b[0] + n_to_read; for (i = 0; ! eof ; i = !i) |