monero_wallet_utils: switched from memcpy to .data() access

pull/29/head
Paul Shapiro 6 years ago
parent 1362364c12
commit d8d3c0f1a6

@ -78,7 +78,7 @@ bool monero_wallet_utils::words_to_bytes(
if (s.size() != sizeof(dst)) { if (s.size() != sizeof(dst)) {
return false; return false;
} }
memcpy(dst.data, s.data(), sizeof(dst.data)); dst = *(const legacy16B_secret_key*)s.data();
return true; return true;
} }
bool monero_wallet_utils::bytes_to_words( bool monero_wallet_utils::bytes_to_words(

Loading…
Cancel
Save