From b6771468e834402acfc3527baf3ad4b15772aac6 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Thu, 6 Oct 2022 14:40:29 -0700 Subject: [PATCH] Also look for and reject `\r` --- tools/metroidbuildinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/metroidbuildinfo.c b/tools/metroidbuildinfo.c index 9c1a0e4a..4fce9e4b 100644 --- a/tools/metroidbuildinfo.c +++ b/tools/metroidbuildinfo.c @@ -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);