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.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/Xfire/src/processbuddyinfo.cpp b/protocols/Xfire/src/processbuddyinfo.cpp
index 8079d35e4c..38f195b127 100644
--- a/protocols/Xfire/src/processbuddyinfo.cpp
+++ b/protocols/Xfire/src/processbuddyinfo.cpp
@@ -1,6 +1,6 @@
#include "stdafx.h"
#include "processbuddyinfo.h"
-
+#include "variables.h"
#include <sys\stat.h>
@@ -28,8 +28,8 @@ extern HANDLE XFireAvatarFolder;
}*/
void ProcessBuddyInfo(xfirelib::BuddyInfoPacket *buddyinfo,HANDLE hcontact,char* username) {
- char temp[255]="";
- char filename[255];
+ char temp[255] = "";
+ char filename[1024] = "";
BOOL dl=FALSE;
int type;
@@ -50,8 +50,7 @@ void ProcessBuddyInfo(xfirelib::BuddyInfoPacket *buddyinfo,HANDLE hcontact,char*
DBDeleteContactSetting(NULL,protocolname, "MyAvatarFile");
}
- FoldersGetCustomPath( XFireAvatarFolder, filename, 255, "" );
- strcat(filename,"\\");
+ strcpy(filename, XFireGetFoldersPath ("Avatar"));
switch(buddyinfo->avatarmode) {
case 1: