And do it right this time

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka
2008-05-05 15:34:21 -03:00
parent 75d755afad
commit 7867db7b23
+2 -1
View File
@@ -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)