summaryrefslogtreecommitdiff
path: root/src/head.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-06 14:24:16 +0000
committerJim Meyering <jim@meyering.net>2004-05-06 14:24:16 +0000
commit94c2794761bdca0b8523b279cf4cdb03bf343234 (patch)
tree2aae391e2683a49086ba1b2e84e8d9fd69b7cab3 /src/head.c
parent4de12cc0124f3574876763010b5f0c5cf9a67d91 (diff)
downloadcoreutils-94c2794761bdca0b8523b279cf4cdb03bf343234.tar.xz
(elide_tail_bytes_pipe): Use xnmalloc, rather than xmalloc.
Diffstat (limited to 'src/head.c')
-rw-r--r--src/head.c2
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)