[gaim-migrate @ 18004]

Fri, 15 Dec 2006 07:00:32 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Fri, 15 Dec 2006 07:00:32 +0000
changeset 15276
fb22432b58d5
parent 15275
ebf5d4eeaf96
child 15277
7f9e97dffc4f

[gaim-migrate @ 18004]
This is way less confusing to me

libgaim/protocols/yahoo/yahoo_packet.c file | annotate | diff | comparison | revisions
--- 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;
 		}

mercurial