Mercurial > pidgin
diff src/server.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 | 3063e6743913 |
children | a487b35ac05a |
line wrap: on
line diff
--- a/src/server.c Sat Dec 02 20:02:59 2000 +0000 +++ b/src/server.c Sun Dec 03 09:50:39 2000 +0000 @@ -97,7 +97,7 @@ if (strlen(gc->user->user_info)) { buf = g_malloc(strlen(gc->user->user_info) * 4); - strcpy(buf, gc->user->user_info); + strncpy_withhtml(buf, gc->user->user_info, strlen(gc->user->user_info) * 4); serv_set_info(gc, buf); g_free(buf); }