comparison 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
comparison
equal deleted inserted replaced
1190:c3ebd5932e32 1191:4fd0d35826fe
95 { 95 {
96 char *buf; 96 char *buf;
97 97
98 if (strlen(gc->user->user_info)) { 98 if (strlen(gc->user->user_info)) {
99 buf = g_malloc(strlen(gc->user->user_info) * 4); 99 buf = g_malloc(strlen(gc->user->user_info) * 4);
100 strcpy(buf, gc->user->user_info); 100 strncpy_withhtml(buf, gc->user->user_info, strlen(gc->user->user_info) * 4);
101 serv_set_info(gc, buf); 101 serv_set_info(gc, buf);
102 g_free(buf); 102 g_free(buf);
103 } 103 }
104 104
105 if (gc->idle_timer > 0) 105 if (gc->idle_timer > 0)