From: Jim Meyering Date: Fri, 4 Aug 2000 10:13:30 +0000 (+0000) Subject: (store_columns): Remove conjunct that would dereference X-Git-Tag: TEXTUTILS-2_0g~23 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=90d90ce434378c2b8d0b0103c2aafd714b16c794;p=thirdparty%2Fcoreutils.git (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). --- diff --git a/src/pr.c b/src/pr.c index b703b80146..761ef3efd5 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); }