- tmp_str = wxURL::ConvertToValidURI(path);
- wxSprintf(buf, _T("%s %s HTTP/1.0\n\r"), tmp_buf, tmp_str.GetData());
- pathbuf = wxConvLibc.cWX2MB(buf);
- Write(pathbuf, strlen(MBSTRINGCAST pathbuf));
+ wxString buf;
+ buf.Printf(wxT("%s %s HTTP/1.0\r\n"), tmp_buf, path.c_str());
+ const wxWX2MBbuf pathbuf = wxConvLibc.cWX2MB(buf);
+ Write(pathbuf, strlen(wxMBSTRINGCAST pathbuf));