From f2de79cb2eb8247548650ee80d75be109ac66ee7 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 23 May 2015 16:25:49 +0000 Subject: replace strcat to mir_strcat git-svn-id: http://svn.miranda-ng.org/main/trunk@13777 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen_file.cpp | 4 ++-- protocols/Tlen/src/tlen_thread.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/Tlen') diff --git a/protocols/Tlen/src/tlen_file.cpp b/protocols/Tlen/src/tlen_file.cpp index aaa8aa8ccd..71ad60185f 100644 --- a/protocols/Tlen/src/tlen_file.cpp +++ b/protocols/Tlen/src/tlen_file.cpp @@ -82,8 +82,8 @@ static void TlenFileReceiveParse(TLEN_FILE_TRANSFER *ft) fullFileName = (char *) mir_alloc(mir_strlen(ft->szSavePath) + mir_strlen(ft->files[ft->currentFile]) + 2); mir_strcpy(fullFileName, ft->szSavePath); if (fullFileName[mir_strlen(fullFileName)-1] != '\\') - strcat(fullFileName, "\\"); - strcat(fullFileName, ft->files[ft->currentFile]); + mir_strcat(fullFileName, "\\"); + mir_strcat(fullFileName, ft->files[ft->currentFile]); ft->fileId = _open(fullFileName, _O_BINARY|_O_WRONLY|_O_CREAT|_O_TRUNC, _S_IREAD|_S_IWRITE); ft->fileReceivedBytes = 0; ft->fileTotalSize = ft->filesSize[ft->currentFile]; diff --git a/protocols/Tlen/src/tlen_thread.cpp b/protocols/Tlen/src/tlen_thread.cpp index 3c31a9a097..f614b0a323 100644 --- a/protocols/Tlen/src/tlen_thread.cpp +++ b/protocols/Tlen/src/tlen_thread.cpp @@ -565,9 +565,9 @@ static void TlenProcessIqGetVersion(TlenProtocol *proto, XmlNode *node) mir_strcpy(mversion, "Miranda NG "); CallService(MS_SYSTEM_GETVERSIONTEXT, sizeof( mversion ) - 11, ( LPARAM )mversion + 11 ); - strcat(mversion, " (Tlen v."); - strcat(mversion, TLEN_VERSION_STRING); - strcat(mversion, ")"); + mir_strcat(mversion, " (Tlen v."); + mir_strcat(mversion, TLEN_VERSION_STRING); + mir_strcat(mversion, ")"); mver = TlenTextEncode( mversion ); TlenSend( proto, "%s%s%s", from, mver?mver:"", version?version:"", os?os:"" ); if (!item->versionRequested) { @@ -1132,8 +1132,8 @@ static void TlenProcessP(XmlNode *node, ThreadData *info) iStr = TlenXmlGetAttrValue(iNode, "i"); temp = (char*)mir_alloc(mir_strlen(f)+mir_strlen(iStr)+2); mir_strcpy(temp, f); - strcat(temp, "/"); - strcat(temp, iStr); + mir_strcat(temp, "/"); + mir_strcat(temp, iStr); f = TlenTextDecode(temp); mir_free(temp); node = iNode; -- cgit v1.2.3