mirror of https://github.com/PrimeDecomp/prime.git
Also look for and reject `\r`
This commit is contained in:
parent
4891eb8e51
commit
b6771468e8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue