summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorAnders F Björklund <anders.f.bjorklund@gmail.com>2021-03-22 22:09:16 +0100
committerMatthew Heon <mheon@redhat.com>2021-03-29 10:53:10 -0400
commit15da607d137a6b219d08b21f305de335f94d34d7 (patch)
treee8038839a68383700d5bbae98e8829d2dfa25272 /pkg/bindings
parent0127cc1840f870640c09f6adcf8c35929c189304 (diff)
downloadpodman-15da607d137a6b219d08b21f305de335f94d34d7.tar.gz
podman-15da607d137a6b219d08b21f305de335f94d34d7.tar.bz2
podman-15da607d137a6b219d08b21f305de335f94d34d7.zip
Fix swapped dimensions from terminal.GetSize
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com> <MH: Fixed cherry-pick conflicts> Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/containers/attach.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/containers/attach.go b/pkg/bindings/containers/attach.go
index f48b99a95..ecae22a1b 100644
--- a/pkg/bindings/containers/attach.go
+++ b/pkg/bindings/containers/attach.go
@@ -336,7 +336,7 @@ func attachHandleResize(ctx, winCtx context.Context, winChange chan os.Signal, i
case <-winCtx.Done():
return
case <-winChange:
- h, w, err := terminal.GetSize(int(file.Fd()))
+ w, h, err := terminal.GetSize(int(file.Fd()))
if err != nil {
logrus.Warnf("failed to obtain TTY size: %v", err)
}