mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-13 02:52:37 +00:00
Fix: depend was messing the line endings in append mode
This commit is contained in:
parent
ee84f98f1e
commit
1106534262
@ -1008,7 +1008,7 @@ int main(int argc, char *argv[])
|
||||
fclose(src);
|
||||
|
||||
/* Then append it to the real file. */
|
||||
src = fopen(backup, "rb");
|
||||
src = fopen(backup, "r");
|
||||
while (fgets(content, size, src) != NULL) {
|
||||
fputs(content, dst);
|
||||
if (!strncmp(content, delimiter, strlen(delimiter))) found_delimiter = true;
|
||||
|
Loading…
Reference in New Issue
Block a user