mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-15 14:25:52 +00:00
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;
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user