Also look for and reject `\r`

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

View File

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