mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(fillbuf): Use x2realloc on 1-byte base types, not x2nrealloc.
This commit is contained in:
1 parent
dec00b5930
commit
cdedc0925c
1 file changed
+1
-1
+1
-1
@@ -1059,7 +1059,7 @@ fillbuf (struct buffer *buf, FILE *fp, char const *file)
|
||||
|
||||
/* The current input line is too long to fit in the buffer.
|
||||
Double the buffer size and try again. */
|
||||
buf->buf = x2nrealloc (buf->buf, &buf->alloc, sizeof *(buf->buf));
|
||||
buf->buf = x2realloc (buf->buf, &buf->alloc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user