aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-09-23 20:20:13 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-09-23 20:20:58 +0200
commit7a04f3d708faab4af1f1a6aeddc5a6a4db3849a5 (patch)
treebdc34997a290bed1fd9f36ca4b0bb53f4493e160
parent35ee2dac6736e23be3fdd584ba0e321e54ff8f61 (diff)
parent87314c1c5e69035fefa638de8e237e4ce09788e9 (diff)
downloadbitcoin-7a04f3d708faab4af1f1a6aeddc5a6a4db3849a5.tar.xz
Merge pull request #4955
87314c1 Fixing improper input syntax and failing bounds check (ENikS)
-rw-r--r--src/serialize.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialize.h b/src/serialize.h
index 57f5fd069b..447d808dee 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -921,7 +921,7 @@ public:
Init(nTypeIn, nVersionIn);
}
- CDataStream(const std::vector<unsigned char>& vchIn, int nTypeIn, int nVersionIn) : vch((char*)&vchIn.begin()[0], (char*)&vchIn.end()[0])
+ CDataStream(const std::vector<unsigned char>& vchIn, int nTypeIn, int nVersionIn) : vch(vchIn.begin(), vchIn.end())
{
Init(nTypeIn, nVersionIn);
}