Mercurial > pidgin
diff src/server.c @ 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 | ad445074d239 |
| children | cce2d7868c78 |
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); }
