summaryrefslogtreecommitdiff
path: root/protocols/AimOscar/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-06-04 19:16:08 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-06-04 19:16:08 +0000
commit7e822f45eccd034e7acd8d868ce5dc8c55458ff0 (patch)
tree8857c6f5fd5d0c616e3bd752ce4cc9444f1d7d4e /protocols/AimOscar/src
parent660d46e1ae2ae6a87c5a530619a93742759e9e3a (diff)
compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16916 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/src')
-rw-r--r--protocols/AimOscar/src/file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/AimOscar/src/file.cpp b/protocols/AimOscar/src/file.cpp
index aaf531eb22..8774998b51 100644
--- a/protocols/AimOscar/src/file.cpp
+++ b/protocols/AimOscar/src/file.cpp
@@ -125,8 +125,8 @@ bool setup_next_file_send(file_transfer *ft)
T2Utf fname(file);
if (ft->pfts.totalFiles > 1 && ft->file[0]) {
size_t dlen = mir_strlen(ft->file);
- if (strncmp(fname, ft->file, dlen) == 0 && fname[dlen] == '\\') {
- fnamea = &fname[dlen + 1];
+ if (strncmp(fname, ft->file, dlen) == 0 && fname.get()[dlen] == '\\') {
+ fnamea = &fname.get()[dlen + 1];
for (char *p = fnamea; *p; ++p)
if (*p == '\\')
*p = 1;