From: Jim Meyering Date: Tue, 28 Jun 2005 16:33:20 +0000 (+0000) Subject: (fillbuf): Use x2realloc on 1-byte base types, not x2nrealloc. X-Git-Tag: CPPI-1_12~464 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdedc0925ca605ebafdd541fc4403b5b77e92740;p=thirdparty%2Fcoreutils.git (fillbuf): Use x2realloc on 1-byte base types, not x2nrealloc. --- diff --git a/src/sort.c b/src/sort.c index 2b583d21c3..5820de0938 100644 --- a/src/sort.c +++ b/src/sort.c @@ -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); } }