diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx index 6c45ec3..404b2eb 100644 --- a/common/rfb/VNCServerST.cxx +++ b/common/rfb/VNCServerST.cxx @@ -846,7 +846,6 @@ void VNCServerST::blackOut() int stride; const rdr::U8 *src = pb->getBuffer(pb->getRect(), &stride); rdr::U8 *data = blackedpb->getBufferRW(pb->getRect(), &stride); - rdr::U8 *data = mpb->getBufferRW(mpb->getRect(), &stride); stride *= 4; memcpy(data, src, stride * pb->getRect().height());