diff libpurple/protocols/qq/qq_crypt.c @ 26887:bf7b3cd5ed25

correct what looks like an uninitialized read, not really tested much but my QQ account can still sign on
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 03 May 2009 17:58:21 +0000
parents 5f454b975a99
children b34d5e9b3d9b
line wrap: on
line diff
--- a/libpurple/protocols/qq/qq_crypt.c	Sat May 02 19:14:07 2009 +0000
+++ b/libpurple/protocols/qq/qq_crypt.c	Sun May 03 17:58:21 2009 +0000
@@ -275,7 +275,7 @@
 	}
 	
 	count64 = crypted_len / 8;
-	while (count64-- > 0){
+	while (--count64 > 0){
 		c32_prev[0] = crypted32[0]; c32_prev[1] = crypted32[1];
 		crypted_ptr += 8;