X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/055fa6bf18e0733d1bf2f97075d6bb33c76e72b5..46424de88e9de51a8151fd6ef813ff7827b1ad8c:/unixstuff.inc diff --git a/unixstuff.inc b/unixstuff.inc index f5de6d4..0eb9b3d 100755 --- a/unixstuff.inc +++ b/unixstuff.inc @@ -81,7 +81,7 @@ end; function GetSocketName(Sock: LongInt; var Addr;var Addrlen: LongInt):LongInt; begin - result := fpgetpeername(sock,@addr,@addrlen); + result := fpgetsockname(sock,@addr,@addrlen); end; function Accept(Sock: LongInt; var Addr; var Addrlen: LongInt):LongInt; begin