Adding tests for gettitle and saveinpfile

This commit is contained in:
Michael Tryby
2019-02-28 08:11:59 -05:00
parent ab536d1927
commit c7d533c6e4
4 changed files with 69 additions and 17 deletions

View File

@@ -272,7 +272,7 @@ int newline(Project *pr, int sect, char *line)
{
n = (int)strlen(line);
if (line[n - 1] == 10)
line[n - 1] = ' ';
line[n - 1] = '\0';
strncpy(pr->Title[parser->Ntitle], line, TITLELEN);
parser->Ntitle++;
}