flawfinder: Fix patch so line number count is correct
This commit is contained in:
parent
3bdc1db866
commit
8674d33858
|
@ -1301,7 +1301,7 @@ def process_c_file(f, patch_infos):
|
||||||
i = m.end(0)
|
i = m.end(0)
|
||||||
|
|
||||||
if i >= len(text):
|
if i >= len(text):
|
||||||
c = ''
|
c = "\n" # Last line with no newline, we're done
|
||||||
else:
|
else:
|
||||||
c = text[i]
|
c = text[i]
|
||||||
if linebegin: # If at beginning of line, see if #include is there.
|
if linebegin: # If at beginning of line, see if #include is there.
|
||||||
|
|
Loading…
Reference in New Issue