From bc16a1ba286b8a8c7b54cdc198c577f43150f06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 5 Nov 2012 22:28:33 +0000 Subject: XFire: Fixed crash on login (someone should properly fix all that folders related things) git-svn-id: http://svn.miranda-ng.org/main/trunk@2213 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/processbuddyinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols') diff --git a/protocols/Xfire/src/processbuddyinfo.cpp b/protocols/Xfire/src/processbuddyinfo.cpp index e5e6fb6af7..f02f50142b 100644 --- a/protocols/Xfire/src/processbuddyinfo.cpp +++ b/protocols/Xfire/src/processbuddyinfo.cpp @@ -28,8 +28,8 @@ extern HANDLE XFireAvatarFolder; }*/ void ProcessBuddyInfo(xfirelib::BuddyInfoPacket *buddyinfo,HANDLE hcontact,char* username) { - char temp[512]=""; - char filename[512]; + char temp[255]=""; + char filename[255]; BOOL dl=FALSE; int type; @@ -50,7 +50,7 @@ void ProcessBuddyInfo(xfirelib::BuddyInfoPacket *buddyinfo,HANDLE hcontact,char* DBDeleteContactSetting(NULL,protocolname, "MyAvatarFile"); } - FoldersGetCustomPath( XFireAvatarFolder, filename, 1024, "" ); + FoldersGetCustomPath( XFireAvatarFolder, filename, 255, "" ); strcat(filename,"\\"); switch(buddyinfo->avatarmode) { -- cgit v1.2.3