Mercurial > pidgin.yaz
diff src/away.c @ 1191:4fd0d35826fe
[gaim-migrate @ 1201]
thanks to decklin for this patch.
for some reason the logic in strcpy_withhtml looks funny to me. i'm sure it's just me though.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 03 Dec 2000 09:50:39 +0000 |
parents | 47cf56b72d4b |
children | b5783215b245 |
line wrap: on
line diff
--- a/src/away.c Sat Dec 02 20:02:59 2000 +0000 +++ b/src/away.c Sun Dec 03 09:50:39 2000 +0000 @@ -89,7 +89,6 @@ } } - void do_away_message(GtkWidget *w, struct away_message *a) { GtkWidget *back; @@ -178,7 +177,7 @@ buf2 = g_malloc(strlen(awaymessage->message)*4 + 1); - strcpy(buf2, awaymessage->message); + strncpy_withhtml(buf2, awaymessage->message, strlen(awaymessage->message)*4 + 1); serv_set_away(buf2); g_free(buf2); gtk_widget_show(imaway);