mirror of
https://github.com/troglobit/finit.git
synced 2026-10-04 14:54:14 +07:00
And do it right this time
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
+2
-1
@@ -162,7 +162,8 @@ int main()
|
||||
while (!feof(f)) {
|
||||
fgets(line, LINE_SIZE, f);
|
||||
|
||||
if (line[i = strlen(line)] == '\n')
|
||||
i = strlen(line);
|
||||
if (i && line[i - 1] == '\n')
|
||||
line[i] = 0;
|
||||
|
||||
if (debug)
|
||||
|
||||
Reference in New Issue
Block a user