summaryrefslogtreecommitdiff
path: root/ext/socket/raddrinfo.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-28 13:29:55 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-28 13:29:55 +0000
commit338ec3cee73f58091927d9282070efd0da0cca36 (patch)
treede0940cea38db3a6df8085666aa0a5bda1e95eb9 /ext/socket/raddrinfo.c
parent9a1d5b04cd8aab74c4a915476d533181058ab21c (diff)
* ext/socket/raddrinfo.c (inspect_sockaddr): don't show that Unix
domain socket filename is bigger than sizeof(sun_path). This limit is not rigid on some platforms such as Darwin and SunOS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/raddrinfo.c')
-rw-r--r--ext/socket/raddrinfo.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index 52169d3..569456c 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -1048,9 +1048,6 @@ inspect_sockaddr(VALUE addrinfo, VALUE ret)
while (s < e)
rb_str_catf(ret, ":%02x", (unsigned char)*s++);
}
- if (addr->sun_path + sizeof(addr->sun_path) < (char*)&rai->addr + rai->sockaddr_len)
- rb_str_catf(ret, "(sockaddr %d bytes too long)",
- (int)(rai->sockaddr_len - (addr->sun_path + sizeof(addr->sun_path) - (char*)&rai->addr)));
}
break;
}