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(); }