Skip to content

Commit

Permalink
Fix subscript[0] in netaddress.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRubin committed Jul 8, 2017
1 parent 361d952 commit b6856eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netaddress.cpp
Expand Up @@ -573,7 +573,7 @@ std::vector<unsigned char> CService::GetKey() const
{
std::vector<unsigned char> vKey;
vKey.resize(18);
memcpy(&vKey[0], ip, 16);
memcpy(vKey.data(), ip, 16);
vKey[16] = port / 0x100;
vKey[17] = port & 0x0FF;
return vKey;
Expand Down

0 comments on commit b6856eb

Please sign in to comment.