mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Fix #4596: Failed to build on MSVC 2015 Update 3, problem with file encoding
This ellipsis character is causing compiling issue on Windows 10 system in Chinese language.
This commit is contained in:
@@ -246,7 +246,7 @@ static void execute_cmd(char *command, int *exit_value, char *buf, size_t *buf_s
|
||||
if (buf && buf_size) {
|
||||
n_chars = fread(buf, 1, *buf_size, f);
|
||||
|
||||
// some commands may return a new-line terminated result, trim that…
|
||||
// some commands may return a new-line terminated result, trim that
|
||||
if (n_chars > 0 && buf[n_chars - 1] == '\n') {
|
||||
buf[n_chars - 1] = '\0';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user