summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/irclib.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-13 20:12:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-13 20:12:02 +0000
commit1ca35422a252e1b254d6a4823717d39f7988514f (patch)
treed2f6b3486d75cb83a506a27faf4d652cdd686037 /protocols/IRCG/src/irclib.cpp
parente84bf4a5995b26423129b9339dd387e2a7431a0a (diff)
fix for wrong CMString::Mid calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@14944 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IRCG/src/irclib.cpp')
-rw-r--r--protocols/IRCG/src/irclib.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/IRCG/src/irclib.cpp b/protocols/IRCG/src/irclib.cpp
index e9a8340119..5961bcf5f2 100644
--- a/protocols/IRCG/src/irclib.cpp
+++ b/protocols/IRCG/src/irclib.cpp
@@ -926,11 +926,11 @@ int CDccSession::SetupConnection()
int i = di->sFileAndPath.ReverseFind('\\');
if (i != -1) {
di->sPath = di->sFileAndPath.Mid(0, i + 1);
- di->sFile = di->sFileAndPath.Mid(i + 1, di->sFileAndPath.GetLength());
+ di->sFile = di->sFileAndPath.Mid(i + 1);
}
- pfts.tszCurrentFile = (TCHAR*)di->sFileAndPath.c_str();
- pfts.tszWorkingDir = (TCHAR*)di->sPath.c_str();
+ pfts.tszCurrentFile = di->sFileAndPath.GetBuffer();
+ pfts.tszWorkingDir = di->sPath.GetBuffer();
pfts.totalBytes = di->dwSize;
pfts.currentFileSize = pfts.totalBytes;