summaryrefslogtreecommitdiff
path: root/protocols/Xfire
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 19:19:41 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 19:19:41 +0000
commitc286424ea035f96133fc17f98710cdd905023364 (patch)
tree2bd36e3d7d5c31265dd0ccb53b7bb21a08317acc /protocols/Xfire
parent869c86912bb22530f3dc9369c02e4455de6bdb21 (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13654 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire')
-rw-r--r--protocols/Xfire/src/searching4games.cpp6
1 files changed, 3 insertions, 3 deletions
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