]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(fillbuf): Use x2realloc on 1-byte base types, not x2nrealloc.
authorJim Meyering <jim@meyering.net>
Tue, 28 Jun 2005 16:33:20 +0000 (16:33 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 28 Jun 2005 16:33:20 +0000 (16:33 +0000)
src/sort.c

index 2b583d21c38f5d056034713518edf1bfac817639..5820de09388fd0601a2ef189f54d2aa7dc249cfd 100644 (file)
@@ -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);
     }
 }