Browse Source

Fixing improper input syntax and failing bounds check

tags/v0.15.1
ENikS 7 years ago
parent
commit
87314c1c5e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/serialize.h

+ 1
- 1
src/serialize.h View File

@@ -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);
}

Loading…
Cancel
Save