changeset 2356:ddf404cd9757

[gaim-migrate @ 2369] khromyy put in this patch committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 24 Sep 2001 20:37:41 +0000
parents 571971659533
children d6d3d2e6d625
files plugins/chatlist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/chatlist.c	Mon Sep 24 19:32:57 2001 +0000
+++ b/plugins/chatlist.c	Mon Sep 24 20:37:41 2001 +0000
@@ -120,7 +120,7 @@
 	}
 	while (fgets(buf, 1024, f)) {
 		struct chat_room *cr = g_new0(struct chat_room, 1);
-		g_snprintf(cr->name, sizeof(cr->name), "%s", buf);
+		g_snprintf(cr->name, sizeof(cr->name), "%s", g_strchomp(buf));
 		if (!fgets(buf, 1024, f)) {
 			g_free(cr);
 			break;