summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-04 10:13:30 +0000
committerJim Meyering <jim@meyering.net>2000-08-04 10:13:30 +0000
commit90d90ce434378c2b8d0b0103c2aafd714b16c794 (patch)
treea5cf8900c6185c714d4e73152bd6c70448a56e5f
parenta5b5eb21f9ecf3abb10e18d8629a6a9207f57790 (diff)
downloadcoreutils-90d90ce434378c2b8d0b0103c2aafd714b16c794.tar.xz
(store_columns): Remove conjunct that would dereference
an out-of-bounds pointer. Reported by Greg McGary (who found this bug using his bounded-pointers-enabled gcc).
-rw-r--r--src/pr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pr.c b/src/pr.c
index b703b8014..761ef3efd 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -2018,7 +2018,7 @@ store_columns (void)
/* Keep track of the location of the last char in buff. */
line_vector[line] = buff_start;
- if (balance_columns && p->lines_stored != lines_per_body)
+ if (balance_columns)
balance (line);
}