From 0a5d88dd11ae31f27b913e16236fd87966bca5e9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 18 Sep 2003 08:05:18 +0000 Subject: [PATCH] Fix bug that overextended a chunk if the last line was normalized away. --- shredtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.43.0