aboutsummaryrefslogtreecommitdiff
path: root/chinese/gcin
diff options
context:
space:
mode:
authorClive Lin <clive@FreeBSD.org>2005-10-13 03:35:11 +0000
committerClive Lin <clive@FreeBSD.org>2005-10-13 03:35:11 +0000
commit8b428ab273b77c205eb5464920fdcf9c29d894ef (patch)
tree0f8fafb863041d2cf1e9d99cf98941352fea69d0 /chinese/gcin
parent613cc95a21324c898ce5fb29ee3f5e28c4c54e1f (diff)
downloadports-8b428ab273b77c205eb5464920fdcf9c29d894ef.tar.gz
ports-8b428ab273b77c205eb5464920fdcf9c29d894ef.zip
Notes
Diffstat (limited to 'chinese/gcin')
-rw-r--r--chinese/gcin/files/patch-im-client_gcin-im-client.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/chinese/gcin/files/patch-im-client_gcin-im-client.c b/chinese/gcin/files/patch-im-client_gcin-im-client.c
index 89aea7a4c99f..7a0a4d196574 100644
--- a/chinese/gcin/files/patch-im-client_gcin-im-client.c
+++ b/chinese/gcin/files/patch-im-client_gcin-im-client.c
@@ -1,11 +1,14 @@
---- im-client/gcin-im-client.c.orig Wed Oct 5 05:56:02 2005
-+++ im-client/gcin-im-client.c Wed Oct 5 05:56:23 2005
-@@ -94,7 +94,7 @@
+--- im-client/gcin-im-client.c~ Thu Oct 13 01:11:53 2005
++++ im-client/gcin-im-client.c Thu Oct 13 01:14:23 2005
+@@ -94,7 +94,11 @@
get_gcin_im_srv_sock_path(sock_path, sizeof(sock_path));
addr = sock_path;
strcpy(serv_addr.sun_path, sock_path);
-- servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family);
-+ servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family) +1;
++#ifdef SUN_LEN
++ servlen = SUN_LEN(&serv_addr);
++#else
+ servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family);
++#endif
if ((sockfd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {
perror("cannot open socket");