From c286424ea035f96133fc17f98710cdd905023364 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 16 May 2015 19:19:41 +0000 Subject: fix for strncat use git-svn-id: http://svn.miranda-ng.org/main/trunk@13654 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/searching4games.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Xfire') diff --git a/protocols/Xfire/src/searching4games.cpp b/protocols/Xfire/src/searching4games.cpp index 2522a06f9b..9796d02414 100644 --- a/protocols/Xfire/src/searching4games.cpp +++ b/protocols/Xfire/src/searching4games.cpp @@ -69,9 +69,9 @@ BOOL CheckPath(char*ppath, char*pathwildcard = NULL) strncpy(temp, ppath,XFIRE_MAX_STATIC_STRING_LEN-1); *(temp + strlen(temp) - 1) = 0; - strncat(temp, wfd.cFileName,XFIRE_MAX_STATIC_STRING_LEN-1); - strncat(temp, "\\",XFIRE_MAX_STATIC_STRING_LEN-1); - strncat(temp, pos,XFIRE_MAX_STATIC_STRING_LEN-1); + strncat(temp, wfd.cFileName, SIZEOF(temp) - mir_strlen(temp)); + strncat(temp, "\\", SIZEOF(temp) - mir_strlen(temp)); + strncat(temp, pos, SIZEOF(temp) - mir_strlen(temp)); if (GetFileAttributesA(temp) != 0xFFFFFFFF) { //exe vorhanden???? unt hint? //gefundenes in path kopieren -- cgit v1.2.3