]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(elide_tail_bytes_pipe): Use xnmalloc, rather than xmalloc.
authorJim Meyering <jim@meyering.net>
Thu, 6 May 2004 14:24:16 +0000 (14:24 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 6 May 2004 14:24:16 +0000 (14:24 +0000)
src/head.c

index ab6e96032b3223474c1d2051e2738afc2b9c9277..ee86ac01ea36509a6572be58bfa640599939058c 100644 (file)
@@ -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)