Skip to content

Commit

Permalink
Merge pull request #4726
Browse files Browse the repository at this point in the history
91eaea9 mnemonics: fix words_to_bytes on big endian (moneromooo-monero)
  • Loading branch information
fluffypony committed Nov 6, 2018
2 parents 4ccb97c + 91eaea9 commit b60078d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mnemonics/electrum-words.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit b60078d

Please sign in to comment.