diff options
author | rockcavera <rockcavera@gmail.com> | 2022-01-06 08:19:32 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 12:19:32 +0100 |
commit | 5ec8b609421a2e74e7d5f8d00293194faf4437d4 (patch) | |
tree | 96fb934b452947895f8484b243c97c67ab6933ad | |
parent | 9df195ef581879cf9e5c3c3154755bd1dba677c6 (diff) | |
download | Nim-5ec8b609421a2e74e7d5f8d00293194faf4437d4.tar.gz |
Update net.nim (#19327) [backport]
-rw-r--r-- | lib/pure/net.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim index 8dc92e9d6..c1d4c6228 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -1628,7 +1628,7 @@ proc recvFrom*[T: string | IpAddress](socket: Socket, data: var string, length: ## used. Therefore if `socket` contains something in its buffer this ## function will make no effort to return it. template adaptRecvFromToDomain(sockAddress: untyped, domain: Domain) = - var addrLen = sizeof(sockAddress).SockLen + var addrLen = SockLen(sizeof(sockAddress)) result = recvfrom(socket.fd, cstring(data), length.cint, flags.cint, cast[ptr SockAddr](addr(sockAddress)), addr(addrLen)) |