Skip to content

Commit

Permalink
changed socket length to return int32
Browse files Browse the repository at this point in the history
  • Loading branch information
albertsundjaja committed Feb 22, 2025
1 parent 31c3b98 commit 7dd6636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syscall/syscall_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, int32, error) {
}
// Length is family + name (+ NUL if non-abstract).
// Family is of type uint16 (2 bytes).
sl := _Socklen(2 + n)
sl := int32(2 + n)
if isAbstract {
// Abstract addresses are not NUL terminated.
// We rewrite '@' prefix to NUL here.
Expand Down

0 comments on commit 7dd6636

Please sign in to comment.