Mercurial > pidgin.yaz
diff src/dialogs.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 | c3ebd5932e32 |
children | 265abea9db72 |
line wrap: on
line diff
--- a/src/dialogs.c Sat Dec 02 20:02:59 2000 +0000 +++ b/src/dialogs.c Sun Dec 03 09:50:39 2000 +0000 @@ -1297,7 +1297,8 @@ buf = g_malloc(1); buf[0] = 0; } - g_snprintf(buf, MIN(strlen(junk) * 2, 4096), "%s", junk); + //g_snprintf(buf, MIN(strlen(junk) * 2, 4096), "%s", junk); + strncpy_withhtml(buf, junk, MIN(strlen(junk) * 2, 4096)); serv_set_info(gc, buf); g_free(buf); }