From ff31b9dfc898a10db6ffe868f4c8b553b0f1d8ad Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 2 Feb 2014 22:07:33 -0800 Subject: [PATCH] client (Android) compile fix --- lib/gui_rpc_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gui_rpc_client.cpp b/lib/gui_rpc_client.cpp index b561d1a64c..2f2ad1b12e 100644 --- a/lib/gui_rpc_client.cpp +++ b/lib/gui_rpc_client.cpp @@ -249,7 +249,7 @@ int RPC_CLIENT::init_unix_domain() { addr_un.sun_len = sizeof(addr_un); #endif strcpy(addr_un.sun_path, GUI_RPC_FILE); - socklen_t len = SUN_LEN(&addr_un); + socklen_t len = offsetof(sockaddr_un, sun_path) + strlen(GUI_RPC_FILE); if (connect(sock, (struct sockaddr*)&addr_un, len) < 0) { boinc_close_socket(sock); return ERR_CONNECT;