diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-25 20:22:13 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-25 20:23:17 +0000 |
commit | 91eaea9c72f7104820aff15792ec70a3e69e7f35 (patch) | |
tree | 2219fd45bab8beec8ea2604241c78a6b7b90439e /src/mnemonics | |
parent | Merge pull request #4697 (diff) | |
download | monero-91eaea9c72f7104820aff15792ec70a3e69e7f35.tar.xz |
mnemonics: fix words_to_bytes on big endian
Diffstat (limited to 'src/mnemonics')
-rw-r--r-- | src/mnemonics/electrum-words.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp index 3d6338856..c140bb5d3 100644 --- a/src/mnemonics/electrum-words.cpp +++ b/src/mnemonics/electrum-words.cpp @@ -335,6 +335,7 @@ namespace crypto return false; } + w[0] = SWAP32LE(w[0]); dst.append((const char*)&w[0], 4); // copy 4 bytes to position memwipe(w, sizeof(w)); } |