plugins/yay/outgoing.c

changeset 1554
1883d6c5fb5c
parent 1546
484b6d058933
child 1570
de731694417b
--- a/plugins/yay/outgoing.c	Fri Mar 09 12:34:39 2001 +0000
+++ b/plugins/yay/outgoing.c	Sat Mar 10 00:00:18 2001 +0000
@@ -30,7 +30,7 @@
 	if (!g_list_find(session->connlist, conn))
 		return 0;
 
-	if (write(conn->socket, buf, len) != len) {
+	if (send(conn->socket, buf, len, 0) != len) {
 		int type = conn->type;
 		yahoo_close(session, conn);
 		YAHOO_PRINT(session, YAHOO_LOG_CRITICAL, "error sending");

mercurial