From d8d3c0f1a611f27c3726f51fb48b1327835f50cb Mon Sep 17 00:00:00 2001 From: Paul Shapiro Date: Thu, 18 Oct 2018 11:15:14 -0500 Subject: [PATCH] monero_wallet_utils: switched from memcpy to .data() access --- src/monero_wallet_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monero_wallet_utils.cpp b/src/monero_wallet_utils.cpp index 9a6c351..6b77953 100644 --- a/src/monero_wallet_utils.cpp +++ b/src/monero_wallet_utils.cpp @@ -78,7 +78,7 @@ bool monero_wallet_utils::words_to_bytes( if (s.size() != sizeof(dst)) { return false; } - memcpy(dst.data, s.data(), sizeof(dst.data)); + dst = *(const legacy16B_secret_key*)s.data(); return true; } bool monero_wallet_utils::bytes_to_words(