git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix linker warning: stringop-overread
[novacoin.git]
/
src
/
base58.cpp
diff --git
a/src/base58.cpp
b/src/base58.cpp
index
f57c4c6
..
b077a0b
100644
(file)
--- a/
src/base58.cpp
+++ b/
src/base58.cpp
@@
-258,7
+258,7
@@
bool DecodeBase58Check(const std::string& str, std::vector<unsigned char>& vchRe
std::string CBase58Data::ToString() const
{
- std::vector<unsigned char> vch(1, nVersion);
+ std::vector<unsigned char> vch{nVersion};
vch.insert(vch.end(), vchData.begin(), vchData.end());
return EncodeBase58Check(vch);
}