changeset 15215:74511b8e9b46

[gaim-migrate @ 18004] This is way less confusing to me committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 15 Dec 2006 07:00:32 +0000
parents bfc90a066604
children c65def04fb44
files libgaim/protocols/yahoo/yahoo_packet.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/yahoo/yahoo_packet.c	Fri Dec 15 02:48:27 2006 +0000
+++ b/libgaim/protocols/yahoo/yahoo_packet.c	Fri Dec 15 07:00:32 2006 +0000
@@ -155,7 +155,7 @@
 		pair->key = strtol(key, NULL, 10);
 		accept = x; /* if x is 0 there was no key, so don't accept it */
 
-		if (len - pos + 1 <= 0) {
+		if (pos > len) {
 			/* Truncated. Garbage or something. */
 			accept = FALSE;
 		}