fgetline() does not return the newline.

This commit is contained in:
mycroft 1993-06-08 16:49:53 +00:00
parent da84bb1ffa
commit e3ea23c51a

View File

@ -674,21 +674,20 @@ cgetnext(bp, db_array)
} else
continue;
}
} else
line[len - 1] = '\0';
if (len == 1) {
}
if (len == 0) {
slash = 0;
continue;
}
if (isspace(*line) ||
*line == ':' || *line == '#' || slash) {
if (line[len - 2] == '\\')
if (line[len - 1] == '\\')
slash = 1;
else
slash = 0;
continue;
}
if (line[len - 2] == '\\')
if (line[len - 1] == '\\')
slash = 1;
else
slash = 0;
@ -723,8 +722,7 @@ cgetnext(bp, db_array)
(void)cgetclose();
return (-1);
}
} else
line[len - 1] = '\0';
}
}
}
rp = buf;