aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-25 20:22:13 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-25 20:23:17 +0000
commit91eaea9c72f7104820aff15792ec70a3e69e7f35 (patch)
tree2219fd45bab8beec8ea2604241c78a6b7b90439e /src/mnemonics
parentMerge pull request #4697 (diff)
downloadmonero-91eaea9c72f7104820aff15792ec70a3e69e7f35.tar.xz
mnemonics: fix words_to_bytes on big endian
Diffstat (limited to 'src/mnemonics')
-rw-r--r--src/mnemonics/electrum-words.cpp1
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));
}