flawfinder: Fix patch so line number count is correct

This commit is contained in:
David A. Wheeler 2014-07-12 06:46:14 -04:00
parent 3bdc1db866
commit 8674d33858
1 changed files with 1 additions and 1 deletions

View File

@ -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.