diff options
author | Pierre Ossman <ossman@cendio.se> | 2019-10-04 09:22:08 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2019-10-04 09:22:08 +0200 |
commit | e71a426f0c41f21df60f0bc3047eafac203b14ce (patch) | |
tree | 6edf3ec4fbb9aae29cf3acbfb62804bc8b42796f /common/rfb | |
parent | 9bd75993cb21f5ef601155ac8c701f082e7984ad (diff) | |
download | tigervnc-e71a426f0c41f21df60f0bc3047eafac203b14ce.tar.gz tigervnc-e71a426f0c41f21df60f0bc3047eafac203b14ce.zip |
Fix bad PixelBuffer reference in VNCServerST::setPixelBuffer()
We need to examine the incoming PixelBuffer, not the previous one
(which might not even be valid).
Diffstat (limited to 'common/rfb')
-rw-r--r-- | common/rfb/VNCServerST.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx index a3655bca..a24bb223 100644 --- a/common/rfb/VNCServerST.cxx +++ b/common/rfb/VNCServerST.cxx @@ -313,7 +313,7 @@ void VNCServerST::setPixelBuffer(PixelBuffer* pb_) // Make sure that we have at least one screen if (layout.num_screens() == 0) - layout.add_screen(Screen(0, 0, 0, pb->width(), pb->height(), 0)); + layout.add_screen(Screen(0, 0, 0, pb_->width(), pb_->height(), 0)); setPixelBuffer(pb_, layout); } |