* ext/socket/socket.c (unix_peeraddr): wrong syscall name in error

message for #peeraddr. a patch from Sam Roberts
  <sroberts at uniserve.com>.  [ruby-core:10366]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-02-19 08:17:14 +00:00
parent 9c79e14614
commit 2551d9b534
3 changed files with 10 additions and 4 deletions

View file

@ -2166,7 +2166,7 @@ unix_peeraddr(VALUE sock)
GetOpenFile(sock, fptr);
if (getpeername(fptr->fd, (struct sockaddr*)&addr, &len) < 0)
rb_sys_fail("getsockname(2)");
rb_sys_fail("getpeername(2)");
return unixaddr(&addr, len);
}
#endif