mirror of
https://github.com/troglobit/finit.git
synced 2026-11-30 21:18:22 +00:00
And do it right this time
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
75d755afad
commit
7867db7b23
1 file changed
+2
-1
+2
-1
@@ -162,7 +162,8 @@ int main()
|
|||||||
while (!feof(f)) {
|
while (!feof(f)) {
|
||||||
fgets(line, LINE_SIZE, f);
|
fgets(line, LINE_SIZE, f);
|
||||||
|
|
||||||
if (line[i = strlen(line)] == '\n')
|
i = strlen(line);
|
||||||
|
if (i && line[i - 1] == '\n')
|
||||||
line[i] = 0;
|
line[i] = 0;
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|||||||
Reference in new issue
Block a user