pidgin: d608a133: Oops, this is the wrong limit.

qulogic at pidgin.im qulogic at pidgin.im
Fri Dec 3 00:35:58 EST 2010


----------------------------------------------------------------------
Revision: d608a133197c453522b566b803c9dc10a9519863
Parent:   9602b15266c4fc5b8d091851704e16a0120c9f7a
Author:   qulogic at pidgin.im
Date:     12/02/10 22:49:40
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d608a133197c453522b566b803c9dc10a9519863

Changelog: 

Oops, this is the wrong limit.

Changes against parent 9602b15266c4fc5b8d091851704e16a0120c9f7a

  patched  libpurple/protocols/msn/msn.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msn.c	c07683fe4e2f5216c417f072674ca3bfeff6e797
+++ libpurple/protocols/msn/msn.c	bda1a923042947b60e41a2b29391fa688e18eb76
@@ -264,13 +264,13 @@ msn_set_public_alias(PurpleConnection *p
 
 		for (; *alias && i < BUDDY_ALIAS_MAXLEN; alias++) {
 			if (*alias == '%') {
-				if (i > BUF_LEN - 4)
+				if (i > BUDDY_ALIAS_MAXLEN - 4)
 					break;
 				real_alias[i++] = '%';
 				real_alias[i++] = '2';
 				real_alias[i++] = '5';
 			} else if (*alias == ' ') {
-				if (i > BUF_LEN - 4)
+				if (i > BUDDY_ALIAS_MAXLEN - 4)
 					break;
 				real_alias[i++] = '%';
 				real_alias[i++] = '2';


More information about the Commits mailing list