From 5a17c9299e03bebf46169927abdeee34aaf8e854 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 22 May 2015 10:06:32 +0000 Subject: replace strlen to mir_strlen git-svn-id: http://svn.miranda-ng.org/main/trunk@13747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/Xfire_game.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'protocols/Xfire/src/Xfire_game.cpp') diff --git a/protocols/Xfire/src/Xfire_game.cpp b/protocols/Xfire/src/Xfire_game.cpp index 12acb76b07..167495b2d6 100644 --- a/protocols/Xfire/src/Xfire_game.cpp +++ b/protocols/Xfire/src/Xfire_game.cpp @@ -23,7 +23,7 @@ BOOL Xfire_game::start_game(char*ip, unsigned int port, char*pw) { return FALSE; //ist launchparam großgenug für eibne urlprüfung? - if (strlen(this->launchparams) > 5) + if (mir_strlen(this->launchparams) > 5) { //launchparams ne url? dann openurl funktion von miranda verwenden if (this->launchparams[0] == 'h'&& @@ -49,10 +49,10 @@ BOOL Xfire_game::start_game(char*ip, unsigned int port, char*pw) { //größe des netzwerparams berechnen if (this->pwparams) - pwsize += strlen(this->pwparams); + pwsize += mir_strlen(this->pwparams); - mynetworkparams = new char[strlen(this->networkparams) + pwsize]; - strcpy_s(mynetworkparams, strlen(this->networkparams) + pwsize, this->networkparams); + mynetworkparams = new char[mir_strlen(this->networkparams) + pwsize]; + strcpy_s(mynetworkparams, mir_strlen(this->networkparams) + pwsize, this->networkparams); //port begrenzen port = port % 65535; @@ -92,19 +92,19 @@ BOOL Xfire_game::start_game(char*ip, unsigned int port, char*pw) { } if (mynetworkparams) - networksize = strlen(mynetworkparams) + strlen(this->networkparams); + networksize = mir_strlen(mynetworkparams) + mir_strlen(this->networkparams); } //extra parameter int extraparamssize = 0; if (this->extraparams) { - extraparamssize = strlen(this->extraparams); + extraparamssize = mir_strlen(this->extraparams); } //temporäres array anlegen char*temp = NULL; - temp = new char[strlen(this->launchparams) + networksize + extraparamssize + 1]; + temp = new char[mir_strlen(this->launchparams) + networksize + extraparamssize + 1]; if (temp == NULL) { @@ -116,7 +116,7 @@ BOOL Xfire_game::start_game(char*ip, unsigned int port, char*pw) { } //launcherstring ins temporäre array - strcpy_s(temp, strlen(this->launchparams) + 1, this->launchparams); + strcpy_s(temp, mir_strlen(this->launchparams) + 1, this->launchparams); //netzwerkparameter ? if (mynetworkparams) @@ -289,7 +289,7 @@ void Xfire_game::readFromDB(unsigned dbid) if (this->path) { BOOL found = FALSE; - for (unsigned int i = 0; i < strlen(this->path); i++) + for (unsigned int i = 0; i < mir_strlen(this->path); i++) { if (this->path[i] == '~') { -- cgit v1.2.3