diff --git a/source/shared_lib/sources/platform/posix/miniftpclient.cpp b/source/shared_lib/sources/platform/posix/miniftpclient.cpp index 5ef116d3..076ef4f9 100644 --- a/source/shared_lib/sources/platform/posix/miniftpclient.cpp +++ b/source/shared_lib/sources/platform/posix/miniftpclient.cpp @@ -72,7 +72,7 @@ void FTPClientThread::getMapFromServer(string mapFileName) { FTP_Client_ResultType result = ftp_crt_FAIL; string destFile = this->mapsPath.second + mapFileName; - if(EndsWith(destFile,".mgm") && EndsWith(destFile,".gbm")) { + if(EndsWith(destFile,".mgm") == false && EndsWith(destFile,".gbm") == false) { destFile += ".mgm"; }