changeset 8876:f0f6af31c90a

[gaim-migrate @ 9645] " This fixes a line of ugly pointer arithmetic that was causing errors with building zephyr on x86_64, and doesn't break x86 (at least). If it causes more problems, I'll submit another patch after wednesday." --Arun A Tharuvai committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 05 May 2004 20:31:58 +0000
parents 39c06f943767
children c8cd436b5840
files ChangeLog src/protocols/zephyr/zephyr.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed May 05 20:30:47 2004 +0000
+++ b/ChangeLog	Wed May 05 20:31:58 2004 +0000
@@ -25,6 +25,7 @@
 	* Copy/paste encoding fixes (Joe Marcus Clarke)
 	* IRC disconnect crash fix (Luciano Miguel Ferreira Rocha)
 	* Novell prpl works on big endian machines (Novell)
+	* Zephyr works on 64 bit machines (Arun A Tharuvai)
 
 version 0.77 (04/22/2004):
 	New Features:
--- a/src/protocols/zephyr/zephyr.c	Wed May 05 20:30:47 2004 +0000
+++ b/src/protocols/zephyr/zephyr.c	Wed May 05 20:31:58 2004 +0000
@@ -578,7 +578,7 @@
 		GaimConversation *gconv1;
 		GaimConvChat *gcc;
 		char *ptr = notice.z_message + strlen(notice.z_message) + 1;
-		int len = notice.z_message_len - ((int)ptr - (int)notice.z_message);
+		int len = notice.z_message_len - (strlen(notice.z_message) +1);
 		char *sendertmp = g_strdup_printf("%s", gaim_zephyr_get_sender());
 		GaimConvImFlags flags = 0;