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/processbuddyinfo.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/processbuddyinfo.cpp')
-rw-r--r-- | protocols/Xfire/src/processbuddyinfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Xfire/src/processbuddyinfo.cpp b/protocols/Xfire/src/processbuddyinfo.cpp index 32ac9d9808..b23d51b531 100644 --- a/protocols/Xfire/src/processbuddyinfo.cpp +++ b/protocols/Xfire/src/processbuddyinfo.cpp @@ -58,7 +58,7 @@ void ProcessBuddyInfo(xfirelib::BuddyInfoPacket *buddyinfo,HANDLE hcontact,char* strcat(filename,".gif");
type=PA_FORMAT_GIF;
- sprintf(temp,"/xfire/xf/images/avatars/gallery/default/%03d.gif",buddyinfo->avatarid);
+ mir_snprintf(temp, SIZEOF(temp), "/xfire/xf/images/avatars/gallery/default/%03d.gif", buddyinfo->avatarid);
dl=GetWWWContent("media.xfire.com",temp,filename,FALSE);
break;
@@ -67,7 +67,7 @@ void ProcessBuddyInfo(xfirelib::BuddyInfoPacket *buddyinfo,HANDLE hcontact,char* strcat(filename,".jpg");
type=PA_FORMAT_JPEG;
- sprintf(temp,"/avatar/100/%s.jpg?%d",username,buddyinfo->avatarid);
+ mir_snprintf(temp, SIZEOF(temp), "/avatar/100/%s.jpg?%d", username, buddyinfo->avatarid);
dl=GetWWWContent("screenshot.xfire.com",temp,filename,FALSE);
break;
@@ -75,7 +75,7 @@ void ProcessBuddyInfo(xfirelib::BuddyInfoPacket *buddyinfo,HANDLE hcontact,char* type=PA_FORMAT_GIF;
strcat(filename,"xfire.gif");
- sprintf(temp,"/xfire/xf/images/avatars/gallery/default/xfire.gif",buddyinfo->avatarid);
+ mir_snprintf(temp, SIZEOF(temp), "/xfire/xf/images/avatars/gallery/default/xfire.gif", buddyinfo->avatarid);
dl=GetWWWContent("media.xfire.com",temp,filename,TRUE);
break;
|