fix typos

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-01-16 20:09:51 +00:00
parent 6689960c3c
commit 634ad7722b

View File

@@ -46,19 +46,19 @@ enum TransferMode
return; return;
} }
ftp.ChDir("/pub/2.8.9); ftp.ChDir("/pub/2.8.9");
wxInputStream *i = ftp.GetInputStream("wxWidgets-2.8.9.tar.bz2"); wxInputStream *i = ftp.GetInputStream("wxWidgets-2.8.9.tar.bz2");
if ( !in ) if ( !in )
{ {
wxLogError("Coudln't get file"); wxLogError("Couldn't get the file");
} }
else else
{ {
size_t size = in-GetSize(); size_t size = in->GetSize();
char *data = new char[size]; char *data = new char[size];
if ( !in->Read(data, size) ) if ( !in->Read(data, size) )
{ {
wxLogError("Read error"); wxLogError("Read error: %d", ftp.GetError());
} }
else else
{ {