comparison 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
comparison
equal deleted inserted replaced
1190:c3ebd5932e32 1191:4fd0d35826fe
1295 buf = g_malloc(strlen(junk) * 4); 1295 buf = g_malloc(strlen(junk) * 4);
1296 if (!buf) { 1296 if (!buf) {
1297 buf = g_malloc(1); 1297 buf = g_malloc(1);
1298 buf[0] = 0; 1298 buf[0] = 0;
1299 } 1299 }
1300 g_snprintf(buf, MIN(strlen(junk) * 2, 4096), "%s", junk); 1300 //g_snprintf(buf, MIN(strlen(junk) * 2, 4096), "%s", junk);
1301 strncpy_withhtml(buf, junk, MIN(strlen(junk) * 2, 4096));
1301 serv_set_info(gc, buf); 1302 serv_set_info(gc, buf);
1302 g_free(buf); 1303 g_free(buf);
1303 } 1304 }
1304 } 1305 }
1305 g_free(junk); 1306 g_free(junk);