diff options
| author | Archez <Archez@users.noreply.github.com> | 2024-11-08 23:22:33 -0500 |
|---|---|---|
| committer | louist103 <35883445+louist103@users.noreply.github.com> | 2025-03-29 13:55:21 -0400 |
| commit | da2219929fd670db964e7f80b513d07b667a13f2 (patch) | |
| tree | bdb55f2bf8276be1aab6a4b42a787290ab9e4250 | |
| parent | d3fd4d86ac9edb4c2c84d20d38971ffe041ee381 (diff) | |
Fix portVersion file in custom otr having garbage data (#33)
| -rw-r--r-- | OTRExporter/Main.cpp | 3 |
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; |
