# HG changeset patch # User Eric Warmenhoven # Date 992204444 0 # Node ID e90a0164436cfaf2cb56eccac2a0e5ad04d56150 # Parent 26ff22691f5e80dd4552ca2da056406a5d4efbbd [gaim-migrate @ 1994] small details committer: Tailor Script diff -r 26ff22691f5e -r e90a0164436c plugins/msn/msn.c --- 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); }