aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-15 11:04:58 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-15 11:05:42 +0000
commit2b10f22ae62910d3cb5453c75cb9f267644cbd7d (patch)
treea002fae2eebe42738e05c1bb104c947488ba61a7 /src
parentMerge pull request #5258 (diff)
downloadmonero-2b10f22ae62910d3cb5453c75cb9f267644cbd7d.tar.xz
mnemonics: fix half length seed to bytes conversion
Diffstat (limited to '')
-rw-r--r--src/mnemonics/electrum-words.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp
index 68d5b84d3..940c5e43a 100644
--- a/src/mnemonics/electrum-words.cpp
+++ b/src/mnemonics/electrum-words.cpp
@@ -340,9 +340,7 @@ namespace crypto
const size_t expected = len * 3 / 32;
if (seed.size() == expected/2)
{
- dst += ' '; // if electrum 12-word seed, duplicate
- dst += dst; // if electrum 12-word seed, duplicate
- dst.pop_back(); // trailing space
+ dst.append(dst.data(), dst.size()); // if electrum 12-word seed, duplicate
}
}