#ifndef WX_PRECOMP
#include "wx/crt.h"
- #include "wx/arrstr.h"
#endif
#include "wx/uri.h"
{
m_hostType = wxURI_IPV6ADDRESS;
- m_server.assign(start, uri - start - 1);
+ m_server.assign(start + 1, uri - start - 1);
++uri;
}
else
{
m_hostType = wxURI_IPVFUTURE;
- m_server.assign(start, uri - start - 1);
+ m_server.assign(start + 1, uri - start - 1);
++uri;
}
else // unrecognized IP literal
{
m_hostType = wxURI_IPV4ADDRESS;
- m_server.assign(start, uri - start - 1);
+ m_server.assign(start, uri - start);
}
else
{