From: Jim Meyering Date: Thu, 6 May 2004 14:24:16 +0000 (+0000) Subject: (elide_tail_bytes_pipe): Use xnmalloc, rather than xmalloc. X-Git-Tag: v5.3.0~1618 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94c2794761bdca0b8523b279cf4cdb03bf343234;p=thirdparty%2Fcoreutils.git (elide_tail_bytes_pipe): Use xnmalloc, rather than xmalloc. --- 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)