Fix: Issue #1 ([CLI] --ostdout uses BitsToString instead of BitsToBytes)

This commit is contained in:
Leonetienne 2022-02-19 22:40:23 +01:00
parent 01f8eddcac
commit 9bac50271e
3 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
#pragma once #pragma once
#define GHETTOCRYPTCLI_VERSION 0.121 #define GHETTOCRYPTCLI_VERSION 0.122

Binary file not shown.

View File

@ -173,7 +173,7 @@ int main(int argc, char** argv)
// Dump to stdout? // Dump to stdout?
if (CommandlineInterface::Get().HasParam("--ostdout")) if (CommandlineInterface::Get().HasParam("--ostdout"))
{ {
const std::string outstr = BitsToString(output); const std::string outstr = BitsToBytes(output);
// We have to print char-by-char to prevent a nullbyte terminating output. // We have to print char-by-char to prevent a nullbyte terminating output.
for (std::size_t i = 0; i < outstr.size(); i++) for (std::size_t i = 0; i < outstr.size(); i++)