From 94c2794761bdca0b8523b279cf4cdb03bf343234 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 May 2004 14:24:16 +0000 Subject: [PATCH] (elide_tail_bytes_pipe): Use xnmalloc, rather than xmalloc. --- src/head.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/head.c b/src/head.c index ab6e96032b..ee86ac01ea 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) -- 2.47.3