changeset 30992:703dd6f433a9

Oops, this is the wrong limit.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 03 Dec 2010 03:49:40 +0000
parents 1546ad4f93b3
children dc996aa83f49
files libpurple/protocols/msn/msn.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c	Thu Dec 02 06:32:55 2010 +0000
+++ b/libpurple/protocols/msn/msn.c	Fri Dec 03 03:49:40 2010 +0000
@@ -264,13 +264,13 @@
 
 		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';