diff options
author | Jim Meyering <jim@meyering.net> | 2005-06-28 16:22:36 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-06-28 16:22:36 +0000 |
commit | 2f955ff766f1939fd4b78b8fe09e66fc37cb87ce (patch) | |
tree | 418d48ca01839e2bc68987ad214921d7fe0f6a42 /src | |
parent | f05347d1ee800e8f06fb7bd97e777d28f1a2d6ae (diff) | |
download | coreutils-2f955ff766f1939fd4b78b8fe09e66fc37cb87ce.tar.xz |
(main, store_char): Use x2realloc on 1-byte base types, not x2nrealloc.
Diffstat (limited to 'src')
-rw-r--r-- | src/pr.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -890,8 +890,7 @@ main (int argc, char **argv) /* Accumulate column-count digits specified via old-style options. */ if (n_digits + 1 >= n_alloc) column_count_string - = x2nrealloc (column_count_string, &n_alloc, - sizeof *column_count_string); + = x2realloc (column_count_string, &n_alloc); column_count_string[n_digits++] = c; column_count_string[n_digits] = 0; continue; @@ -2030,7 +2029,7 @@ store_char (char c) if (buff_current >= buff_allocated) { /* May be too generous. */ - buff = x2nrealloc (buff, &buff_allocated, sizeof *buff); + buff = x2realloc (buff, &buff_allocated); } buff[buff_current++] = c; } |