Sat, 08 Sep 2007 08:21:06 +0000
Looks like I might have been wrong about the length being only 8 bits.
Fixes #2486 I think
| libpurple/protocols/oscar/family_locate.c | file | annotate | diff | comparison | revisions |
--- 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));