diff libpurple/protocols/oscar/family_icq.c @ 29686:c2155cf648f9

Actually write a truncated version of the password to the change password request. This is in response to an email to the devel list from Dylan Taft. This "change password" thing doesn't work at all for me for ICQ.
author Mark Doliner <mark@kingant.net>
date Tue, 06 Apr 2010 10:25:39 +0000
parents aca8afc93264
children 674a656893a3
line wrap: on
line diff
--- a/libpurple/protocols/oscar/family_icq.c	Tue Apr 06 09:52:27 2010 +0000
+++ b/libpurple/protocols/oscar/family_icq.c	Tue Apr 06 10:25:39 2010 +0000
@@ -177,7 +177,7 @@
 	byte_stream_putle16(&bs, snacid); /* eh. */
 	byte_stream_putle16(&bs, 0x042e); /* shrug. */
 	byte_stream_putle16(&bs, passwdlen+1);
-	byte_stream_putstr(&bs, passwd);
+	byte_stream_putraw(&bs, (const guint8 *)passwd, passwdlen);
 	byte_stream_putle8(&bs, '\0');
 
 	flap_connection_send_snac(od, conn, SNAC_FAMILY_ICQ, 0x0002, 0x0000, snacid, &bs);