summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/Tlen
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!NotAdopted/Tlen')
-rw-r--r--plugins/!NotAdopted/Tlen/jabber_misc.c4
-rw-r--r--plugins/!NotAdopted/Tlen/jabber_svc.c7
2 files changed, 5 insertions, 6 deletions
diff --git a/plugins/!NotAdopted/Tlen/jabber_misc.c b/plugins/!NotAdopted/Tlen/jabber_misc.c
index 33ddf80f1e..c514c71c88 100644
--- a/plugins/!NotAdopted/Tlen/jabber_misc.c
+++ b/plugins/!NotAdopted/Tlen/jabber_misc.c
@@ -62,8 +62,8 @@ void JabberDBAddAuthRequest(TlenProtocol *proto, char *jid, char *nick)
//blob is: 0(DWORD), hContact(HANDLE), nick(ASCIIZ), ""(ASCIIZ), ""(ASCIIZ), email(ASCIIZ), ""(ASCIIZ)
cbBlob = sizeof(DWORD) + sizeof(HANDLE) + (int)strlen(nick) + (int)strlen(jid) + 5;
pBlob = pCurBlob = (PBYTE) mir_alloc(cbBlob);
- *((PDWORD) pCurBlob) = 0; pCurBlob += sizeof(DWORD);
- *((PHANDLE) pCurBlob) = hContact; pCurBlob += sizeof(HANDLE);
+ *((PDWORD)pCurBlob) = 0; pCurBlob += sizeof(DWORD);
+ *((PDWORD)pCurBlob) = hContact; pCurBlob += sizeof(DWORD);
strcpy((char *) pCurBlob, nick); pCurBlob += strlen(nick)+1;
*pCurBlob = '\0'; pCurBlob++; //firstName
*pCurBlob = '\0'; pCurBlob++; //lastName
diff --git a/plugins/!NotAdopted/Tlen/jabber_svc.c b/plugins/!NotAdopted/Tlen/jabber_svc.c
index ecc3b26bfb..36ef5d547f 100644
--- a/plugins/!NotAdopted/Tlen/jabber_svc.c
+++ b/plugins/!NotAdopted/Tlen/jabber_svc.c
@@ -268,7 +268,7 @@ HANDLE TlenAddToListByEvent(PROTO_INTERFACE *ptr, int flags, int iContact, HANDL
return (int)(HANDLE) NULL;
}
- nick = (char *) (dbei.pBlob + sizeof(DWORD) + sizeof(HANDLE));
+ nick = (char *)dbei.pBlob + sizeof(DWORD)*2;
firstName = nick + strlen(nick) + 1;
lastName = firstName + strlen(firstName) + 1;
jid = lastName + strlen(lastName) + 1;
@@ -307,7 +307,7 @@ int TlenAuthAllow(PROTO_INTERFACE *ptr, HANDLE hContact)
return 1;
}
- nick = (char *) (dbei.pBlob + sizeof(DWORD) + sizeof(HANDLE));
+ nick = (char *)dbei.pBlob + sizeof(DWORD)*2;
firstName = nick + strlen(nick) + 1;
lastName = firstName + strlen(firstName) + 1;
jid = lastName + strlen(lastName) + 1;
@@ -361,7 +361,7 @@ int TlenAuthDeny(PROTO_INTERFACE *ptr, HANDLE hContact, const TCHAR* szReason)
return 1;
}
- nick = (char *) (dbei.pBlob + sizeof(DWORD) + sizeof(HANDLE));
+ nick = (char *)dbei.pBlob + sizeof(DWORD)*2;
firstName = nick + strlen(nick) + 1;
lastName = firstName + strlen(firstName) + 1;
jid = lastName + strlen(lastName) + 1;
@@ -1297,4 +1297,3 @@ void TlenInitServicesVTbl(TlenProtocol *proto) {
CreateServiceFunction_Ex(s, proto, TlenAccMgrUI);
}
-