From: Eric S. Raymond Date: Thu, 18 Sep 2003 08:05:18 +0000 (+0000) Subject: Fix bug that overextended a chunk if the last line was normalized away. X-Git-Tag: 2.0~13 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=0a5d88dd11ae31f27b913e16236fd87966bca5e9;p=comparator.git Fix bug that overextended a chunk if the last line was normalized away. --- diff --git a/shredtree.c b/shredtree.c index 0613169..ebe1c8e 100644 --- a/shredtree.c +++ b/shredtree.c @@ -214,7 +214,7 @@ int shredfile(struct filehdr_t *file, * styles). This is a kluge, but it means we will capture * entire C functions that differ only by brace placement. */ - if (remove_braces && braceline) + if (remove_braces && braceline && linecount < file->length) extend_current_chunk(); continue; }