X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fab0c8d86f7bd7015db8d0ece8ce02ba1b602d8..12a124ddc9f861d00370de1c7dfb660c53e6931b:/src/common/sckaddr.cpp diff --git a/src/common/sckaddr.cpp b/src/common/sckaddr.cpp index b706132e5c..9e21624fed 100644 --- a/src/common/sckaddr.cpp +++ b/src/common/sckaddr.cpp @@ -508,7 +508,7 @@ bool wxSockAddressImpl::SetHostName4(const wxString& name) if ( !addr ) return false; - const wxUTF8Buf namebuf(name.utf8_str()); + const wxScopedCharBuffer namebuf(name.utf8_str()); // first check if this is an address in quad dotted notation #if defined(HAVE_INET_ATON) @@ -695,7 +695,7 @@ bool wxSockAddressImpl::SetPath(const wxString& path) if ( !addr ) return false; - const wxUTF8Buf buf(path.utf8_str()); + const wxScopedCharBuffer buf(path.utf8_str()); if ( strlen(buf) >= UNIX_PATH_MAX ) return false;