changeset 1984:e90a0164436c

[gaim-migrate @ 1994] small details committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 10 Jun 2001 20:20:44 +0000
parents 26ff22691f5e
children 008a4cc4a82c
files plugins/msn/msn.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/msn/msn.c	Sun Jun 10 18:31:41 2001 +0000
+++ b/plugins/msn/msn.c	Sun Jun 10 20:20:44 2001 +0000
@@ -452,6 +452,7 @@
 			if (md->fd == source) {
 				hide_login_progress(gc, "Read error");
 				signoff(gc);
+				return;
 			}
 
 			close(source);
@@ -1098,7 +1099,7 @@
 static void msn_close(struct gaim_connection *gc)
 {
 	struct msn_data *md = (struct msn_data *)gc->proto_data;
-	char buf[MSN_BUF_LEN - 1];
+	char buf[MSN_BUF_LEN];
 	struct msn_conn *mc = NULL;
 
 	while (msn_connections) {
@@ -1108,7 +1109,7 @@
 	}	
 
 	if (md->fd) {
-		snprintf(buf, MSN_BUF_LEN, "OUT\n");
+		g_snprintf(buf, MSN_BUF_LEN, "OUT\n");
 		msn_write(md->fd, buf);
 		close(md->fd);
 	}
@@ -1117,7 +1118,7 @@
 		gdk_input_remove(gc->inpa);
 
 	if (md->friendly)
-		free(md->friendly);
+		g_free(md->friendly);
 
 	g_free(gc->proto_data);
 }