Hi,

thanks for fixing the big endian stuff and cleaning up the code in
hsep.c, Raphael.

However, you introduced a new bug (the bug originally was there
only for BE, but now it is present also for LE architectures). Here is
a patch to fix that.

----

Index: hsep.c
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/hsep.c,v
retrieving revision 1.5
diff -u -r1.5 hsep.c
--- hsep.c      1 Mar 2004 20:43:15 -0000       1.5
+++ hsep.c      2 Mar 2004 08:57:29 -0000
@@ -310,7 +310,8 @@
                *messaget = guint64_to_LE(*messaget);
                messaget++;
        }
-       messaget -= 3;                  /* Back to front */
+
+       messaget = (guint64 *) n->data;  /* Back to front */

        /* sanity check */

---

Please commit this ASAP, as GTKG will probably crash if >1 triple is
received.

Currently, there's another bug in *printing* what is sent to a
connection (but the correct data is sent *phew*). I'll submit a patch
for this soon.


Greetings,
Thomas.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to