summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/searching4games.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/searching4games.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/searching4games.cpp')
-rw-r--r--protocols/Xfire/src/searching4games.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/Xfire/src/searching4games.cpp b/protocols/Xfire/src/searching4games.cpp
index 2a0ab3b8ea..9ecf80e71b 100644
--- a/protocols/Xfire/src/searching4games.cpp
+++ b/protocols/Xfire/src/searching4games.cpp
@@ -254,9 +254,9 @@ void Scan4Games( LPVOID lparam )
{
//2 gameids?
if(split)
- sprintf(temp,"%i_%i",i,i2);
+ mir_snprintf(temp, SIZEOF(temp), "%i_%i", i, i2);
else
- sprintf(temp,"%i",i);
+ mir_snprintf(temp, SIZEOF(temp), "%i", i);
//MessageBoxA(0,temp,temp,0);
@@ -468,7 +468,7 @@ void Scan4Games( LPVOID lparam )
multiexe=FALSE;
for(int i=1;i<9;i++)
{
- sprintf(ret,"DetectExe[%d]",i);
+ mir_snprintf(ret, SIZEOF(ret), "DetectExe[%d]", i);
if(xfire_GetPrivateProfileString(temp, ret, "", ret2, 512, inipath))
{
char* pos=strrchr(path,'\\');
@@ -551,7 +551,7 @@ void Scan4Games( LPVOID lparam )
newgame->setString(ret2,&newgame->launchparams);
//soll alle string, welche nicht in der commandline eines spiels sein soll in einen string pakcen semikolon getrennt
- sprintf(ret,"CommandLineMustNotContain[0]");
+ mir_snprintf(ret, SIZEOF(ret), "CommandLineMustNotContain[0]");
int i=0;
while(xfire_GetPrivateProfileString(temp, ret, "", ret2, 512, inipath))
@@ -562,7 +562,7 @@ void Scan4Games( LPVOID lparam )
newgame->appendString(ret2,&newgame->notcontain);
i++;
- sprintf(ret,"CommandLineMustNotContain[%d]",i);
+ mir_snprintf(ret, SIZEOF(ret), "CommandLineMustNotContain[%d]", i);
}
newgame->setNameandIcon();
@@ -653,7 +653,7 @@ void Scan4Games( LPVOID lparam )
newgame->setstatusmsg=atoi(ret2);
//soll alle string, welche nicht in der commandline eines spiels sein soll in einen string pakcen semikolon getrennt
- sprintf(ret,"CommandLineMustNotContain[0]");
+ mir_snprintf(ret, SIZEOF(ret), "CommandLineMustNotContain[0]");
int i=0;
while(xfire_GetPrivateProfileString(temp, ret, "", ret2, 512, inipath))
@@ -664,7 +664,7 @@ void Scan4Games( LPVOID lparam )
newgame->appendString(ret2,&newgame->notcontain);
i++;
- sprintf(ret,"CommandLineMustNotContain[%d]",i);
+ mir_snprintf(ret, SIZEOF(ret), "CommandLineMustNotContain[%d]", i);
}
newgame->setNameandIcon();
@@ -726,7 +726,7 @@ void Scan4Games( LPVOID lparam )
int p=strlen(gamelist)-2;
if(p>-1)
gamelist[p]=0; //letztes koma killen
- sprintf(ret,Translate("Games found:%s%s"),"\r\n\r\n",gamelist);
+ mir_snprintf(ret, SIZEOF(ret), Translate("Games found:%s%s"), "\r\n\r\n", gamelist);
MSGBOX(ret);
}