]> thyrsus.com Git - comparator.git/commitdiff
Fix bug that overextended a chunk if the last line was normalized away.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 18 Sep 2003 08:05:18 +0000 (08:05 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 18 Sep 2003 08:05:18 +0000 (08:05 +0000)
shredtree.c

index 0613169c008bc8c68b8d267607deac38c8a00627..ebe1c8ea8540a38d9fd0f2358704a17c9f047825 100644 (file)
@@ -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;
        }