summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-01-15 02:28:05 +0100
committerCharles Pigott <charlespigott@googlemail.com>2019-01-16 19:27:06 +0000
commit11065342620f920e7b3a1227e41e941313707597 (patch)
treef0f9ef63a343ed45b6feb3ffd82d0f2441243a5e /src
parentee84f98f1e1c2063bb2a0c3405200c1a8ff9b970 (diff)
downloadopenttd-11065342620f920e7b3a1227e41e941313707597.tar.xz
Fix: depend was messing the line endings in append mode
Diffstat (limited to 'src')
-rw-r--r--src/depend/depend.cpp2
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;