changeset 6247:9860b81548d8

[gaim-migrate @ 6741] A patch from Tomasz Gajewski that should make Gadu-Gadu work again. http://sourceforge.net/tracker/index.php?func=detail&aid=774634&group_id=235&atid=300235 committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 20 Jul 2003 19:11:13 +0000
parents 2cb2a49f4bbe
children eda6284633ff
files src/protocols/gg/libgg.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/gg/libgg.c	Sun Jul 20 18:59:56 2003 +0000
+++ b/src/protocols/gg/libgg.c	Sun Jul 20 19:11:13 2003 +0000
@@ -1,4 +1,4 @@
-/* $Id: libgg.c 6513 2003-07-08 06:11:49Z faceprint $ */
+/* $Id: libgg.c 6741 2003-07-20 19:11:13Z thekingant $ */
 
 /*
  *  (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>,
@@ -73,7 +73,7 @@
 #ifdef __GNUC__
 __attribute__ ((unused))
 #endif
-= "$Id: libgg.c 6513 2003-07-08 06:11:49Z faceprint $";
+= "$Id: libgg.c 6741 2003-07-20 19:11:13Z thekingant $";
 
 #endif 
 
@@ -750,7 +750,7 @@
 		return -1;
 	}
 
-	p = h + sizeof(struct gg_header);
+	p = (void *)h + sizeof(struct gg_header);
 	
 	if (h->type == GG_RECV_MSG) {
 		struct gg_recv_msg *r = p;
@@ -1131,7 +1131,7 @@
 				break;
 			}
 	
-			w = (struct gg_welcome *)(h + sizeof(struct gg_header));
+			w = (struct gg_welcome *)((void *)h + sizeof(struct gg_header));
 			w->key = fix32(w->key);
 
 			for (hash = 1; *password; password++)