diff options
author | Jim Meyering <jim@meyering.net> | 2003-11-04 09:32:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-11-04 09:32:16 +0000 |
commit | dfed7d19acb28512dd702b82a69055428fdf0867 (patch) | |
tree | fa25feefd7b0a67b5512ec1ef9de1e572c4af341 /src | |
parent | bf4248b344135e5b92ef73af2d9a5f9acb012879 (diff) | |
download | coreutils-dfed7d19acb28512dd702b82a69055428fdf0867.tar.xz |
(store_char): Use x2nrealloc rather than xrealloc.
Diffstat (limited to 'src')
-rw-r--r-- | src/pr.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2013,8 +2013,7 @@ store_char (int c) if (buff_current >= buff_allocated) { /* May be too generous. */ - buff_allocated = 2 * buff_allocated; - buff = xrealloc (buff, buff_allocated * sizeof (char)); + buff = x2nrealloc (buff, &buff_allocated, sizeof *buff); } buff[buff_current++] = (char) c; } |