From 11065342620f920e7b3a1227e41e941313707597 Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 15 Jan 2019 02:28:05 +0100 Subject: Fix: depend was messing the line endings in append mode --- src/depend/depend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2