From c50324b03a66f210e88041e588435134bebf313c Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Wed, 12 Jul 2023 15:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=E6=89=93=E5=BC=80=E6=A0=87=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/hginclude/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/hginclude/utils.cpp b/sdk/hginclude/utils.cpp index 13bf08d..953dfb4 100644 --- a/sdk/hginclude/utils.cpp +++ b/sdk/hginclude/utils.cpp @@ -707,7 +707,7 @@ namespace utils } int save_2_file(void* data, size_t len, const char* file, bool append) { - FILE* dst = fopen(file, append ? "w+b" : "wb"); + FILE* dst = fopen(file, append ? "a+b" : "wb"); int err = 0; if (!dst)