commit | 77b50285e1af3cef1795cba9485e73fc31d04443 | [log] [tgz] |
---|---|---|
author | DRC <dcommander@users.sourceforge.net> | Wed Nov 09 18:18:11 2011 +0000 |
committer | DRC <dcommander@users.sourceforge.net> | Wed Nov 09 18:18:11 2011 +0000 |
tree | 421be6125290329bef6cab16163d6e10707c8559 | |
parent | 5e04c269078655503422588153d09afa1d742463 [diff] |
Fix issue uncovered with valgrind git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4787 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/tightDecode.h b/common/rfb/tightDecode.h index e604e0e..e9f5f6b 100644 --- a/common/rfb/tightDecode.h +++ b/common/rfb/tightDecode.h
@@ -185,7 +185,7 @@ } } 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--;