mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
net: Avoid using C-style NUL-terminated strings as arguments in the netbase interface
This commit is contained in:
@@ -105,7 +105,7 @@ BOOST_AUTO_TEST_CASE(netbase_splithost)
|
||||
|
||||
bool static TestParse(std::string src, std::string canon)
|
||||
{
|
||||
CService addr(LookupNumeric(src.c_str(), 65535));
|
||||
CService addr(LookupNumeric(src, 65535));
|
||||
return canon == addr.ToString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user