diff --git a/src/gnet/gdnsblock.cpp b/src/gnet/gdnsblock.cpp index 858f6df..da458e9 100644 --- a/src/gnet/gdnsblock.cpp +++ b/src/gnet/gdnsblock.cpp @@ -170,7 +170,7 @@ GNet::Address GNet::DnsBlock::nameServerAddress( const std::string & s ) bool GNet::DnsBlock::isDomain( G::string_view s ) noexcept { if( G::Str::isNumeric(s,true) ) return false ; - G::string_view tld = G::Str::tailView( s , "."_sv ) ; + G::string_view tld = G::Str::tailView( s , s.rfind('.') ) ; return tld.empty() || ( G::Str::isSimple(tld) && !G::Str::isNumeric(tld) ) ; } diff --git a/src/gnet/ginterfaces_win32.cpp b/src/gnet/ginterfaces_win32.cpp index 548467f..9845f5b 100644 --- a/src/gnet/ginterfaces_win32.cpp +++ b/src/gnet/ginterfaces_win32.cpp @@ -90,7 +90,7 @@ void GNet::Interfaces::loadImp( ExceptionSink es , std::vector & list ) if( rc == ERROR_BUFFER_OVERFLOW ) { buffer.resize( size ) ; - IP_ADAPTER_ADDRESSES * p = G::buffer_cast( buffer ) ; + p = G::buffer_cast( buffer ) ; rc = GetAdaptersAddresses( AF_UNSPEC , flags , nullptr , p , &size ) ; }