mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(elide_tail_bytes_pipe): Use xnmalloc, rather than xmalloc.
This commit is contained in:
1 parent
4de12cc012
commit
94c2794761
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user