Mercurial > pidgin.yaz
changeset 5461:7883082c290a
[gaim-migrate @ 5852]
Matt Weber (mrweber) writes:
" This patch fixes the buffer used for setting away messages, which in turn fixes HTML away messages set
by a direct call to serv_set_away[_all] as opposed to do_away_message. Also changed strncpy to
strncpy_withhtml to maintain consistency with how it's done in do_away_message."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 20 May 2003 18:15:25 +0000 |
parents | 681194d17946 |
children | 8355eeeb52a3 |
files | src/server.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/server.c Tue May 20 16:44:56 2003 +0000 +++ b/src/server.c Tue May 20 18:15:25 2003 +0000 @@ -322,9 +322,9 @@ } if (message) { - buf = g_malloc(strlen(message) + 1); + buf = g_malloc(strlen(message) * 4 + 1); if (gc->flags & OPT_CONN_HTML) - strncpy(buf, message, strlen(message) + 1); + strncpy_withhtml(buf, message, strlen(message) * 4 + 1); else strncpy_nohtml(buf, message, strlen(message) + 1); }