Make these unsigned, in case someone figures out how to actually send

Tue, 10 Aug 2010 07:04:02 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Tue, 10 Aug 2010 07:04:02 +0000
changeset 30616
f812c8c4d3e9
parent 30615
e82c0dd0b77e
child 30617
d79eaf981448

Make these unsigned, in case someone figures out how to actually send
one of these and somehow manages to use a negative number. Pointed out
by Yuriy M. Kaminskiy. Thanks, Yuriy!

libpurple/protocols/oscar/oscar.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/oscar/oscar.c	Tue Aug 10 06:58:03 2010 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Tue Aug 10 07:04:02 2010 +0000
@@ -3014,7 +3014,8 @@
 
 		case 0x1a: { /* Handle SMS or someone has sent you a greeting card or requested buddies? */
 			ByteStream qbs;
-			int smstype, taglen, smslen;
+			guint16 smstype;
+			guint32 taglen, smslen;
 			char *tagstr = NULL, *smsmsg = NULL;
 			xmlnode *xmlroot = NULL, *xmltmp = NULL;
 			gchar *uin = NULL, *message = NULL;

mercurial