summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/Xfire_game.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-14 19:04:55 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-14 19:04:55 +0000
commitb67c40f21c0fe0c80a3ddd31b0b09f71bf5d97d7 (patch)
treefa22404f4a40f81b86447c5bd7def26fd6815722 /protocols/Xfire/src/Xfire_game.cpp
parentc95efb840d744ec332edfe311b69f1c7ac56560a (diff)
mir_*printf patch for protocols
git-svn-id: http://svn.miranda-ng.org/main/trunk@5690 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/Xfire_game.cpp')
-rw-r--r--protocols/Xfire/src/Xfire_game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Xfire/src/Xfire_game.cpp b/protocols/Xfire/src/Xfire_game.cpp
index 78a616ca04..7e378759ff 100644
--- a/protocols/Xfire/src/Xfire_game.cpp
+++ b/protocols/Xfire/src/Xfire_game.cpp
@@ -57,7 +57,7 @@ BOOL Xfire_game::start_game(char*ip,unsigned int port,char*pw) {
//port begrenzen
port=port%65535;
//port in string wandeln
- sprintf_s(portstr,6,"%d",port);
+ mir_snprintf(portstr,6,"%d",port);
str_replace(mynetworkparams,"%UA_GAME_HOST_NAME%",ip);
str_replace(mynetworkparams,"%UA_GAME_HOST_PORT%",portstr);
@@ -443,7 +443,7 @@ void Xfire_game::createMenuitem(unsigned int pos,int dbid)
mi.pszPopupName = Translate("Start game");
mi.pszContactOwner=protocolname;
- sprintf(temp,servicefunction,this->id);
+ mir_snprintf(temp, SIZEOF(temp), servicefunction, this->id);
//wenn die servicefunktion schon exisitert vernichten, hehe
if(ServiceExists(temp))
DestroyServiceFunction(temp);