summaryrefslogtreecommitdiff
path: root/protocols/Xfire
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire')
-rw-r--r--protocols/Xfire/src/clanbuddylistnamespacket.cpp12
-rw-r--r--protocols/Xfire/src/friendsoffriendlist.cpp4
2 files changed, 8 insertions, 8 deletions
diff --git a/protocols/Xfire/src/clanbuddylistnamespacket.cpp b/protocols/Xfire/src/clanbuddylistnamespacket.cpp
index 2a1b4c77a6..76269a01cf 100644
--- a/protocols/Xfire/src/clanbuddylistnamespacket.cpp
+++ b/protocols/Xfire/src/clanbuddylistnamespacket.cpp
@@ -51,7 +51,7 @@ namespace xfirelib {
VariableValue friends;
- XDEBUG2( "Len: %ld\n", length );
+ XDEBUG2( "Len: %d\n", length );
index+=2; //paar bytes überspringen
@@ -66,7 +66,7 @@ namespace xfirelib {
int numberOfIds = friends.getValueAsLong();
- XDEBUG2( "numberofId: %ld\n", numberOfIds );
+ XDEBUG2( "numberofId: %d\n", numberOfIds );
for(int i = 0 ; i < numberOfIds ; i++) {
index += friends.readValue(buf,index,4);
@@ -74,13 +74,13 @@ namespace xfirelib {
XDEBUG3( "UserID: %ld %ld\n",i+1, friends.getValueAsLong() );
}
- XDEBUG2( "NextByte: %ld\n",buf[index] );
- XDEBUG2( "NextByte: %ld\n",buf[index+1] );
+ XDEBUG2( "NextByte: %c\n",buf[index] );
+ XDEBUG2( "NextByte: %c\n",buf[index+1] );
index+=3; //nächsten 3 skippen
- XDEBUG2( "NextByte: %ld\n",buf[index] );
- XDEBUG2( "NextByte: %ld\n",buf[index+1] );
+ XDEBUG2( "NextByte: %c\n",buf[index] );
+ XDEBUG2( "NextByte: %c\n",buf[index+1] );
usernames = new vector<string>;
index = readStrings(usernames,buf,index);
diff --git a/protocols/Xfire/src/friendsoffriendlist.cpp b/protocols/Xfire/src/friendsoffriendlist.cpp
index bb2c4f884f..c2c5fa5c70 100644
--- a/protocols/Xfire/src/friendsoffriendlist.cpp
+++ b/protocols/Xfire/src/friendsoffriendlist.cpp
@@ -50,12 +50,12 @@ namespace xfirelib {
VariableValue friends;
- XDEBUG2( "Len: %ld\n", length );
+ XDEBUG2( "Len: %d\n", length );
index+=8; //paar bytes überspringen
int numberOfIds = (unsigned char)buf[index];
- XDEBUG2( "numberofId: %ld\n", numberOfIds );
+ XDEBUG2( "numberofId: %d\n", numberOfIds );
index++;
index++;//ignore 00
sids = new vector<char *>;