From 21c8cefef28a52c854a0613c95e77b5e7de0f3cd Mon Sep 17 00:00:00 2001 From: David Kocik Date: Mon, 16 Jan 2023 13:30:09 +0100 Subject: [PATCH] downloader - binary write on resume --- src/slic3r/GUI/DownloaderFileGet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/DownloaderFileGet.cpp b/src/slic3r/GUI/DownloaderFileGet.cpp index 10142c7c1..deac45ad5 100644 --- a/src/slic3r/GUI/DownloaderFileGet.cpp +++ b/src/slic3r/GUI/DownloaderFileGet.cpp @@ -129,7 +129,7 @@ void FileGet::priv::get_perform() if (m_written == 0) file = fopen(temp_path_wstring.c_str(), "wb"); else - file = fopen(temp_path_wstring.c_str(), "a"); + file = fopen(temp_path_wstring.c_str(), "ab"); assert(file != NULL);