From fef34280c69adbde86bb46d4931ee0a7614db527 Mon Sep 17 00:00:00 2001 From: ArgonarioD Date: Thu, 16 Mar 2023 20:15:13 +0800 Subject: [PATCH] =?UTF-8?q?[editor/util]=20fix:=20toBase64=20size=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=9C=89=E8=AF=AF=E5=AF=BC=E8=87=B4=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ArchitectureColoredPainting/src/Editor/util/EncodeUtil.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchitectureColoredPainting/src/Editor/util/EncodeUtil.hpp b/ArchitectureColoredPainting/src/Editor/util/EncodeUtil.hpp index 9ae0957..d9a5d01 100644 --- a/ArchitectureColoredPainting/src/Editor/util/EncodeUtil.hpp +++ b/ArchitectureColoredPainting/src/Editor/util/EncodeUtil.hpp @@ -9,7 +9,7 @@ namespace EncodeUtil { QByteArray ba; ba.resize(vec.size() * sizeof(S)); - memcpy_s(ba.data(), ba.size(), vec.data(), vec.size()); + memcpy_s(ba.data(), ba.size(), vec.data(), vec.size() * sizeof(S)); return ba.toBase64(); }