summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchez <Archez@users.noreply.github.com>2024-11-08 23:22:33 -0500
committerlouist103 <35883445+louist103@users.noreply.github.com>2025-03-29 13:55:21 -0400
commitda2219929fd670db964e7f80b513d07b667a13f2 (patch)
treebdb55f2bf8276be1aab6a4b42a787290ab9e4250
parentd3fd4d86ac9edb4c2c84d20d38971ffe041ee381 (diff)
Fix portVersion file in custom otr having garbage data (#33)
-rw-r--r--OTRExporter/Main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/OTRExporter/Main.cpp b/OTRExporter/Main.cpp
index 795e3fb..0941356 100644
--- a/OTRExporter/Main.cpp
+++ b/OTRExporter/Main.cpp
@@ -192,7 +192,8 @@ static void ExporterProgramEnd()
customOtr->CreateArchive(40000);
printf("Adding portVersion file.\n");
- customOtr->AddFile("portVersion", portVersionStream->ToVector().data(), portVersionStream->GetLength());
+ auto portVersionStreamBuffer = portVersionStream->ToVector();
+ customOtr->AddFile("portVersion", (void*)portVersionStreamBuffer.data(), portVersionStream->GetLength());
std::vector<Data> dataVec;
std::vector<DataU> dataVec2;