summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/processbuddyinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/processbuddyinfo.cpp')
-rw-r--r--protocols/Xfire/src/processbuddyinfo.cpp6
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;