changeset 7013:859cafb6433f

[gaim-migrate @ 7576] (09:00:29) Robot101: Yahoo users of the world unite in celebration (09:00:43) Robot101: for big-endian systems can log on now too (09:01:05) SeanEgan: that may be the gayest commit message ever. (09:01:12) Robot101: thanks committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 29 Sep 2003 13:00:55 +0000
parents 587e3610e1e9
children 67c4e9d39242
files src/protocols/yahoo/yahoo.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Mon Sep 29 12:52:54 2003 +0000
+++ b/src/protocols/yahoo/yahoo.c	Mon Sep 29 13:00:55 2003 +0000
@@ -1161,10 +1161,12 @@
 		
 		times++;
 	}
-	
+
 	/* Dump magic key into a char for SHA1 action. */
-	 	
-	memcpy(&magic_key_char[0], &value, sizeof(int));
+	magic_key_char[0] = value & 0xff;
+	magic_key_char[1] = (value >> 8) & 0xff;
+	magic_key_char[2] = (value >> 16) & 0xff;
+	magic_key_char[3] = (value >> 24) & 0xff;
 
 	/* Get password and crypt hashes as per usual. */
 	md5_init(&ctx);