mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
wallet_rpc_server: fix buffer read overflow in string assignment
This commit is contained in:
parent
c88e992104
commit
4ee156556d
1 changed files with 1 additions and 1 deletions
|
@ -3331,7 +3331,7 @@ namespace tools
|
||||||
er.message = "Failed to encode seed";
|
er.message = "Failed to encode seed";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
res.seed = electrum_words.data();
|
res.seed = std::string(electrum_words.data(), electrum_words.size());
|
||||||
|
|
||||||
if (!wal)
|
if (!wal)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue