From 0c3ceb7c99312d4dc6d36dad93d9c3bec1577a49 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 29 Dec 2010 08:04:31 +0000 Subject: [PATCH] - more ftp bugfixes --- .../shared_lib/sources/platform/posix/miniftpclient.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/shared_lib/sources/platform/posix/miniftpclient.cpp b/source/shared_lib/sources/platform/posix/miniftpclient.cpp index b18aa74b..f04ecc87 100644 --- a/source/shared_lib/sources/platform/posix/miniftpclient.cpp +++ b/source/shared_lib/sources/platform/posix/miniftpclient.cpp @@ -77,7 +77,13 @@ void FTPClientThread::getMapFromServer(string mapFileName) { FTP_Client_ResultType result = ftp_crt_FAIL; string destFileExt = ""; - string destFile = this->mapsPath.second + mapFileName; + string destFile = this->mapsPath.second; + + if(EndsWith(destFile,"/") == false && EndsWith(destFile,"\\") == false) { + destFile += "/"; + } + destFile += mapFileName; + if(EndsWith(destFile,".mgm") == false && EndsWith(destFile,".gbm") == false) { destFileExt = ".mgm"; destFile += destFileExt;