Also look for and reject `\r`

This commit is contained in:
Phillip Stephens 2022-10-06 14:40:29 -07:00
parent 4891eb8e51
commit b6771468e8
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ int main(int argc, const char* argv[]) {
return -4;
}
build_string[strcspn(build_string, "\n")] = '\0';
build_string[strcspn(build_string, "\r\n")] = '\0';
/* Get source length */
fseek(source, 0, SEEK_END);