aboutsummaryrefslogtreecommitdiffhomepage
path: root/fishd.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-01-10 00:44:18 +1000
committerGravatar axel <axel@liljencrantz.se>2006-01-10 00:44:18 +1000
commitae511451fe04ce9e8b6934eaf687c8cdf64780bf (patch)
treeb1aeecc5c97f18f6c4f05fe20d3caa51191af5bf /fishd.c
parentce689e69d5e903f39a378c5a1747d530ef4f9147 (diff)
Fix two issues on OS X, a non-compatible use of the expr command and a bad init of a socket for the universal variable daemon
darcs-hash:20060109144418-ac50b-c6232eae5b964f66d0638289291340aa66cd5983.gz
Diffstat (limited to 'fishd.c')
-rw-r--r--fishd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fishd.c b/fishd.c
index 9b29fd20..595b8a0b 100644
--- a/fishd.c
+++ b/fishd.c
@@ -174,8 +174,8 @@ static int get_socket()
local.sun_family = AF_UNIX;
strcpy( local.sun_path, sock_name );
- len = strlen( local.sun_path ) + sizeof( local.sun_family );
-
+ len = sizeof(local);
+
debug(1, L"Connect to socket at %s", sock_name);
if( ( s = socket( AF_UNIX, SOCK_STREAM, 0 ) ) == -1 )