comparison plugins/chatlist.c @ 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 4ecc9a9a75d8
children 5473c8c5378d
comparison
equal deleted inserted replaced
2355:571971659533 2356:ddf404cd9757
118 g_free(x); 118 g_free(x);
119 return; 119 return;
120 } 120 }
121 while (fgets(buf, 1024, f)) { 121 while (fgets(buf, 1024, f)) {
122 struct chat_room *cr = g_new0(struct chat_room, 1); 122 struct chat_room *cr = g_new0(struct chat_room, 1);
123 g_snprintf(cr->name, sizeof(cr->name), "%s", buf); 123 g_snprintf(cr->name, sizeof(cr->name), "%s", g_strchomp(buf));
124 if (!fgets(buf, 1024, f)) { 124 if (!fgets(buf, 1024, f)) {
125 g_free(cr); 125 g_free(cr);
126 break; 126 break;
127 } 127 }
128 cr->exchange = atoi(buf); 128 cr->exchange = atoi(buf);