From 33d765917eabeb4b664c1b0681d52185920def72 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 May 2015 21:34:40 +0000 Subject: no more mir_strncat in GG git-svn-id: http://svn.miranda-ng.org/main/trunk@13901 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/filetransfer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Gadu-Gadu/src/filetransfer.cpp') diff --git a/protocols/Gadu-Gadu/src/filetransfer.cpp b/protocols/Gadu-Gadu/src/filetransfer.cpp index f0330f7f66..53e3668e3c 100644 --- a/protocols/Gadu-Gadu/src/filetransfer.cpp +++ b/protocols/Gadu-Gadu/src/filetransfer.cpp @@ -662,9 +662,8 @@ HANDLE GGPROTO::dccfileallow(HANDLE hTransfer, const PROTOCHAR* szPath) { struct gg_dcc *dcc = (struct gg_dcc *) hTransfer; char fileName[MAX_PATH], *path = mir_t2a(szPath); - strncpy(fileName, path, sizeof(fileName)); - mir_strncat(fileName, (char*)dcc->file_info.filename, sizeof(fileName) - mir_strlen(fileName)); - dcc->folder = _strdup((char *) path); + mir_snprintf(fileName, _countof(fileName), "%s%s", path, dcc->file_info.filename); + dcc->folder = _strdup((char*)path); dcc->tick = 0; mir_free(path); -- cgit v1.2.3