From 77b50285e1af3cef1795cba9485e73fc31d04443 Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 9 Nov 2011 18:18:11 +0000 Subject: [PATCH] Fix issue uncovered with valgrind git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4787 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/tightDecode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rfb/tightDecode.h b/common/rfb/tightDecode.h index e604e0ec..e9f5f6ba 100644 --- a/common/rfb/tightDecode.h +++ b/common/rfb/tightDecode.h @@ -185,7 +185,7 @@ void TIGHT_DECODE (const Rect& r) } } else { while (h > 0) { - memcpy(ptr, srcPtr, rowSize * sizeof(PIXEL_T)); + memcpy(ptr, srcPtr, w * sizeof(PIXEL_T)); ptr += stride; srcPtr += w * sizeof(PIXEL_T); h--; -- 2.39.5