diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-04-22 09:04:12 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-04-22 09:04:16 +0200 |
commit | 90653bc91d3915f7315ca17298346c5feb002e77 (patch) | |
tree | 35e8a2aaa141813c21385b649d48a2e905d86d91 /src | |
parent | 76176823ba6a8e26fad62c413fbc5dbd9b14c3fb (diff) | |
parent | 57704499be948c640c789c7fc11ed1abf8a681bd (diff) |
Merge #7922: CBase58Data::SetString: cleanse the full vector
5770449 CBase58Data::SetString: cleanse the full vector (Kaz Wesley)
Diffstat (limited to 'src')
-rw-r--r-- | src/base58.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base58.cpp b/src/base58.cpp index d81c26092c..d1d60a6f1d 100644 --- a/src/base58.cpp +++ b/src/base58.cpp @@ -177,7 +177,7 @@ bool CBase58Data::SetString(const char* psz, unsigned int nVersionBytes) vchData.resize(vchTemp.size() - nVersionBytes); if (!vchData.empty()) memcpy(&vchData[0], &vchTemp[nVersionBytes], vchData.size()); - memory_cleanse(&vchTemp[0], vchData.size()); + memory_cleanse(&vchTemp[0], vchTemp.size()); return true; } |