X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/999836aacade840a5d9a0cbb5fad7b1d4de62c93..b765da9f5090ef076302eb0d12cfc11b61296430:/src/common/ftp.cpp diff --git a/src/common/ftp.cpp b/src/common/ftp.cpp index 83f419d546..5edc4b2e8b 100644 --- a/src/common/ftp.cpp +++ b/src/common/ftp.cpp @@ -596,10 +596,10 @@ wxSocketClient *wxFTP::GetPort() wxSscanf(straddr, wxT("%d,%d,%d,%d,%d,%d"), &a[2],&a[3],&a[4],&a[5],&a[0],&a[1]); - wxUint32 hostaddr = (wxUint16)a[5] << 24 | - (wxUint16)a[4] << 16 | - (wxUint16)a[3] << 8 | - a[2]; + wxUint32 hostaddr = (wxUint16)a[2] << 24 | + (wxUint16)a[3] << 16 | + (wxUint16)a[4] << 8 | + a[5]; wxUint16 port = (wxUint16)a[0] << 8 | a[1]; wxIPV4address addr;