Mercurial > pidgin.yaz
diff src/server.c @ 765:bf31bf916f53
[gaim-migrate @ 775]
no, if the away message gets modified, it'll be modified many many times. you won't notice it
until you run out of space
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 25 Aug 2000 05:04:41 +0000 |
parents | a566fc987db9 |
children | 72e556f6b99d |
line wrap: on
line diff
--- a/src/server.c Fri Aug 25 04:17:06 2000 +0000 +++ b/src/server.c Fri Aug 25 05:04:41 2000 +0000 @@ -704,7 +704,7 @@ if (awaymessage != NULL) { time_t t; - char tmpmsg[BUF_LEN]; + char *tmpmsg; time(&t); @@ -718,9 +718,8 @@ is_idle = -1; /* apply default fonts and colors */ - stylize(awaymessage->message, MSG_LEN); + tmpmsg = stylize(awaymessage->message, MSG_LEN); - strcpy(tmpmsg, awaymessage->message); escape_text(tmpmsg); escape_message(tmpmsg); serv_send_im(name, away_subs(tmpmsg, name), 1); @@ -729,7 +728,8 @@ is_idle = 1; if (cnv != NULL) - write_to_conv(cnv, away_subs(awaymessage->message, name), WFLAG_SEND | WFLAG_AUTO, NULL); + write_to_conv(cnv, away_subs(tmpmsg, name), WFLAG_SEND | WFLAG_AUTO, NULL); + g_free(tmpmsg); } }