aboutsummaryrefslogtreecommitdiff
path: root/src/serialize.h
diff options
context:
space:
mode:
authorENikS <evgeni@eniks.com>2014-09-21 21:18:48 -0400
committerENikS <evgeni@eniks.com>2014-09-21 21:18:48 -0400
commit87314c1c5e69035fefa638de8e237e4ce09788e9 (patch)
tree17116059e1e209081b725cc7aa502e6b13e4a16f /src/serialize.h
parent2fc6c67400e91846ca1c1c57011e57491013f9bd (diff)
Fixing improper input syntax and failing bounds check
Diffstat (limited to 'src/serialize.h')
-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);
}