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