aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-04-22 09:04:12 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-04-22 09:04:16 +0200
commit90653bc91d3915f7315ca17298346c5feb002e77 (patch)
tree35e8a2aaa141813c21385b649d48a2e905d86d91 /src
parent76176823ba6a8e26fad62c413fbc5dbd9b14c3fb (diff)
parent57704499be948c640c789c7fc11ed1abf8a681bd (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.cpp2
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;
}