diff options
author | Elliott Sales de Andrade <qulogic@pidgin.im> | 2010-12-03 03:49:40 +0000 |
---|---|---|
committer | Elliott Sales de Andrade <qulogic@pidgin.im> | 2010-12-03 03:49:40 +0000 |
commit | 01aec69cfc6b1df72e1d45a1f793cec466672373 (patch) | |
tree | 93a60da8abe2b7c147130bad7b4ea598a6cf085a /libpurple | |
parent | 45f70819120e98c9695278da0cd7af94da8b72de (diff) | |
download | pidgin-01aec69cfc6b1df72e1d45a1f793cec466672373.tar.gz |
Oops, this is the wrong limit.
Diffstat (limited to 'libpurple')
-rw-r--r-- | libpurple/protocols/msn/msn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpurple/protocols/msn/msn.c b/libpurple/protocols/msn/msn.c index 75dd0ca714..9ebd7269a6 100644 --- a/libpurple/protocols/msn/msn.c +++ b/libpurple/protocols/msn/msn.c @@ -264,13 +264,13 @@ msn_set_public_alias(PurpleConnection *pc, const char *alias, 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'; |