diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-16 10:57:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-16 10:57:40 +0000 |
commit | 30ee89a6764a8d38a078374c6ed5de70635b42c0 (patch) | |
tree | 464bbd4c8e32200107d42c5f95b13134edf42888 /protocols/Xfire/src/addgamedialog.cpp | |
parent | e3c401f192327347151a70596a6b0b493bc762b1 (diff) |
rest or mir_*printf in protocols
git-svn-id: http://svn.miranda-ng.org/main/trunk@5715 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/addgamedialog.cpp')
-rw-r--r-- | protocols/Xfire/src/addgamedialog.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/Xfire/src/addgamedialog.cpp b/protocols/Xfire/src/addgamedialog.cpp index 541d5eca30..0ea63d9219 100644 --- a/protocols/Xfire/src/addgamedialog.cpp +++ b/protocols/Xfire/src/addgamedialog.cpp @@ -144,12 +144,12 @@ static void FillGameList( LPVOID hwndDlg ) { if(z2!=zahlbuffer2)
{
listentry.gameid=MAKELONG(gameid,atoi(zahlbuffer2));
- sprintf_s(gameidtemp,10,"%d_%d",gameid,atoi(zahlbuffer2));
+ mir_snprintf(gameidtemp,10,"%d_%d",gameid,atoi(zahlbuffer2));
}
else
{
listentry.gameid=gameid;
- sprintf_s(gameidtemp,10,"%d",gameid);
+ mir_snprintf(gameidtemp,10,"%d",gameid);
}
@@ -265,7 +265,7 @@ BOOL OpenFileDialog(HWND hwndDlg,OPENFILENAME*ofn,char*exe) { //kein backslash dann normal ret als exenamen verwenden
if((int)exename==1) exename=exe;
//filterstring aufbauen
- sprintf(szFilter,"%s|%s|%s|*.*|",exename,exename,Translate("All Files"));
+ mir_snprintf(szFilter, SIZEOF(szFilter), "%s|%s|%s|*.*|", exename, exename, Translate("All Files"));
//umbruch in 0 wandeln
unsigned int sizeFilter=strlen(szFilter);
for(unsigned int i=0;i<sizeFilter;i++)
@@ -345,13 +345,13 @@ INT_PTR CALLBACK DlgAddGameProc (HWND hwndDlg, int gameid2=HIWORD(gameids);
if(gameid2!=0)
- sprintf_s(gameidtemp,10,"%d_%d",gameid1,gameid2);
+ mir_snprintf(gameidtemp,10,"%d_%d",gameid1,gameid2);
else
- sprintf_s(gameidtemp,10,"%d",gameid1);
+ mir_snprintf(gameidtemp,10,"%d",gameid1);
//spielnamen holen
if(xfire_GetPrivateProfileString(gameidtemp, "LongName", "", ret, 512, inipath)) {
- sprintf_s(gameidtemp,10,"%d",gameid1);
+ mir_snprintf(gameidtemp,10,"%d",gameid1);
//einige felder vorbelegen
SetDlgItemText(hPage,IDC_ADD_NAME,ret);
@@ -389,9 +389,9 @@ INT_PTR CALLBACK DlgAddGameProc (HWND hwndDlg, char ret[512];
if(gameid2!=0)
- sprintf_s(gameidtemp,10,"%d_%d",gameid1,gameid2);
+ mir_snprintf(gameidtemp,10,"%d_%d",gameid1,gameid2);
else
- sprintf_s(gameidtemp,10,"%d",gameid1);
+ mir_snprintf(gameidtemp,10,"%d",gameid1);
//neuen gameeintrag anlegen
Xfire_game* newgame=new Xfire_game();
|