pidgin: 5f404542: Make these unsigned, in case someone fig...

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Aug 10 03:05:44 EDT 2010


----------------------------------------------------------------------
Revision: 5f40454216dc36a3276e369a5b9483d6bddc13f2
Parent:   7e7c75b2610c9df44a0015ba1b295198236ad768
Author:   markdoliner at pidgin.im
Date:     08/10/10 03:04:02
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5f40454216dc36a3276e369a5b9483d6bddc13f2

Changelog: 

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!

Changes against parent 7e7c75b2610c9df44a0015ba1b295198236ad768

  patched  libpurple/protocols/oscar/oscar.c

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c	4b8fce6e8b2d31a97ab97ded4d384a8227b066ba
+++ libpurple/protocols/oscar/oscar.c	54e0bafb930d28e6d23fee0398ef9ceb80cd8b1c
@@ -3014,7 +3014,8 @@ incomingim_chan4(OscarData *od, FlapConn
 
 		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;


More information about the Commits mailing list