diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-10 20:34:46 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-10 20:34:53 +0300 |
commit | 916d3c8fc91d4290aaf5625db636b6cf102306a6 (patch) | |
tree | 2a29cc423ec49112abf48066369629ce92fc068d /protocols/IcqOscarJ/src/icq_filetransfer.cpp | |
parent | 8b981c349ce9489de8c3866bac909f091bb41f8c (diff) |
ICQ:
- warning fixes;
- minor code cleaning
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_filetransfer.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_filetransfer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/IcqOscarJ/src/icq_filetransfer.cpp b/protocols/IcqOscarJ/src/icq_filetransfer.cpp index 03f3484bcb..9caec02d08 100644 --- a/protocols/IcqOscarJ/src/icq_filetransfer.cpp +++ b/protocols/IcqOscarJ/src/icq_filetransfer.cpp @@ -116,7 +116,7 @@ static void file_sendNextFile(CIcqProto* ppro, directconnect* dc) szThisFileNameAnsi = _strdup(pszThisFileName); // Legacy fix
if (!utf8_decode(szThisSubDir, &szThisSubDirAnsi))
szThisSubDirAnsi = _strdup(szThisSubDir); // Legacy fix
-
+
size_t wThisFileNameLen = mir_strlen(szThisFileNameAnsi);
size_t wThisSubDirLen = mir_strlen(szThisSubDirAnsi);
@@ -261,7 +261,7 @@ void CIcqProto::icq_sendFileResume(filetransfer *ft, int action, const char *szF void NormalizeBackslash(char* path)
{
size_t len = mir_strlen(path);
- if (len && path[len-1] != '\\')
+ if (len && path[len - 1] != '\\')
mir_strcat(path, "\\");
}
@@ -345,7 +345,7 @@ void CIcqProto::handleFileTransferPacket(directconnect* dc, PBYTE buf, size_t wL unpackLEWord(&buf, &wThisFilenameLen);
if (wLen < 19 + wThisFilenameLen)
return;
-
+
SAFE_FREE(&dc->ft->szThisFile);
char *szAnsi = (char *)_alloca(wThisFilenameLen + 1);
memcpy(szAnsi, buf, wThisFilenameLen);
|