# HG changeset patch # User Mark Doliner # Date 1166166032 0 # Node ID 74511b8e9b4670100420f7a70f2cca28ee07ca5e # Parent bfc90a0666047bf0e74b2ce69e123943032009f2 [gaim-migrate @ 18004] This is way less confusing to me committer: Tailor Script diff -r bfc90a066604 -r 74511b8e9b46 libgaim/protocols/yahoo/yahoo_packet.c --- 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; }