aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics/electrum-words.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-11-06 14:53:40 +0200
committerRiccardo Spagni <ric@spagni.net>2018-11-06 14:53:40 +0200
commitb60078d1b3b85caca1936f9f22894ced6ee2e88d (patch)
tree8326d95480efdb85421f2e7343b5a56be4c84d70 /src/mnemonics/electrum-words.cpp
parentMerge pull request #4722 (diff)
parentmnemonics: fix words_to_bytes on big endian (diff)
downloadmonero-b60078d1b3b85caca1936f9f22894ced6ee2e88d.tar.xz
Merge pull request #4726
91eaea9c mnemonics: fix words_to_bytes on big endian (moneromooo-monero)
Diffstat (limited to 'src/mnemonics/electrum-words.cpp')
-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 496e26858..94071c23c 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));
}