Mercurial > pidgin
changeset 19683:4a372246ca1e
Looks like I might have been wrong about the length being only 8 bits.
Fixes #2486 I think
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 08 Sep 2007 08:21:06 +0000 |
parents | 44b4e8bd759b |
children | 8021fe1e2a63 |
files | libpurple/protocols/oscar/family_locate.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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));