# HG changeset patch # User Mark Doliner # Date 1189239666 0 # Node ID 4a372246ca1e5618ec064c63c5a8a234d93fea3f # Parent 44b4e8bd759bdc3895223adedf427b565d8bcbd6 Looks like I might have been wrong about the length being only 8 bits. Fixes #2486 I think diff -r 44b4e8bd759b -r 4a372246ca1e libpurple/protocols/oscar/family_locate.c --- a/libpurple/protocols/oscar/family_locate.c Sat Sep 08 03:09:35 2007 +0000 +++ b/libpurple/protocols/oscar/family_locate.c Sat Sep 08 08:21:06 2007 +0000 @@ -636,13 +636,11 @@ * Parse out the Type-Length-Value triples as they're found. */ for (curtlv = 0; curtlv < tlvcnt; curtlv++) { - guint16 type; - guint8 number, length; + guint16 type, length; int endpos; type = byte_stream_get16(bs); - number = byte_stream_get8(bs); - length = byte_stream_get8(bs); + length = byte_stream_get16(bs); endpos = byte_stream_curpos(bs) + MIN(length, byte_stream_empty(bs));