diff options
author | glx <glx@openttd.org> | 2019-01-15 02:28:05 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-01-16 19:27:06 +0000 |
commit | 11065342620f920e7b3a1227e41e941313707597 (patch) | |
tree | f0f9ef63a343ed45b6feb3ffd82d0f2441243a5e /src | |
parent | ee84f98f1e1c2063bb2a0c3405200c1a8ff9b970 (diff) | |
download | openttd-11065342620f920e7b3a1227e41e941313707597.tar.xz |
Fix: depend was messing the line endings in append mode
Diffstat (limited to 'src')
-rw-r--r-- | src/depend/depend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depend/depend.cpp b/src/depend/depend.cpp index f57acba25..9f8de891b 100644 --- a/src/depend/depend.cpp +++ b/src/depend/depend.cpp @@ -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; |