From 8674d33858993328d79700d7fd4a2f2571d00cce Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Sat, 12 Jul 2014 06:46:14 -0400 Subject: [PATCH] flawfinder: Fix patch so line number count is correct --- flawfinder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flawfinder b/flawfinder index 9d370c0..8af54ce 100755 --- a/flawfinder +++ b/flawfinder @@ -1301,7 +1301,7 @@ def process_c_file(f, patch_infos): i = m.end(0) if i >= len(text): - c = '' + c = "\n" # Last line with no newline, we're done else: c = text[i] if linebegin: # If at beginning of line, see if #include is there.