diff -Nur filezilla.orig/src/engine/ftpcontrolsocket.cpp filezilla/src/engine/ftpcontrolsocket.cpp
old
|
new
|
|
3694 | 3694 | return false; |
3695 | 3695 | } |
3696 | 3696 | |
3697 | | size_t pos2 = m_Response.substr(pos + 4).find(L"|)", pos + 4); |
| 3697 | size_t pos2 = m_Response.substr(pos + 4).find(L"|)"); |
3698 | 3698 | if (pos2 == std::wstring::npos || !pos2) { |
3699 | 3699 | return false; |
3700 | 3700 | } |
3701 | 3701 | |
3702 | | std::wstring number = m_Response.substr(pos + 4, pos2 - pos - 4); |
| 3702 | std::wstring number = m_Response.substr(pos + 4, pos2); |
3703 | 3703 | auto port = fz::to_integral<unsigned int>(number); |
3704 | 3704 | |
3705 | 3705 | if (port == 0 || port > 65535) { |