summaryrefslogtreecommitdiffstats
path: root/common/rfb
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-11-09 18:18:11 +0000
committerDRC <dcommander@users.sourceforge.net>2011-11-09 18:18:11 +0000
commit77b50285e1af3cef1795cba9485e73fc31d04443 (patch)
tree421be6125290329bef6cab16163d6e10707c8559 /common/rfb
parent5e04c269078655503422588153d09afa1d742463 (diff)
downloadtigervnc-77b50285e1af3cef1795cba9485e73fc31d04443.tar.gz
tigervnc-77b50285e1af3cef1795cba9485e73fc31d04443.zip
Fix issue uncovered with valgrind
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4787 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb')
-rw-r--r--common/rfb/tightDecode.h2
1 files changed, 1 insertions, 1 deletions
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--;