pty icon indicating copy to clipboard operation
pty copied to clipboard

Incorrect padding in ztypes_freebsd_amd64.go

Open dmgk opened this issue 5 years ago • 1 comments

https://github.com/creack/pty/blob/8ab47f72e8547a066b4ea926f4523775bc1a0ec2/ztypes_freebsd_amd64.go#L12

Should be just

type fiodgnameArg struct {
        Len     int32
        Buf     *byte
}

according to go tool cgo -godefs types_freebsd.go

dmgk avatar Dec 26 '19 19:12 dmgk

@dmgk, What is the reason for your assertion that the padding isn't needed? The file was created by commit. It is possible that definition was incorrect (e.g., due to a copy/paste mistake) or, in the intervening six years, the definition has changed. Does the padding cause any problems?

krader1961 avatar Sep 19 '20 03:09 krader1961