forked from rosebudai/OpenRCT2-Web
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:
1 parent
41dfbed6aa
commit
5fa5f29fc4
1 file changed
+1
-1
@@ -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