summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/irclib.cpp
diff options
context:
space:
mode:
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;