parent
696a5ba3dd
commit
f75387850b
1 changed files with 1 additions and 3 deletions
|
|
@ -281,9 +281,7 @@ bool wxFile::ReadAll(wxString *str, const wxMBConv& conv)
|
|||
length -= nread;
|
||||
}
|
||||
|
||||
*p = 0;
|
||||
|
||||
wxString strTmp(buf, conv);
|
||||
wxString strTmp(buf, conv, length);
|
||||
str->swap(strTmp);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue