summaryrefslogtreecommitdiffstats
path: root/tabletranstemplate.c
diff options
context:
space:
mode:
authordscho <dscho>2001-09-25 22:56:14 +0000
committerdscho <dscho>2001-09-25 22:56:14 +0000
commit74c7c6cd847cdf062864af1d7826785d0584731b (patch)
treec96117f44a7b92ad0c4e5552d5f822fba7e94569 /tabletranstemplate.c
parent1342b7e17844edf3bc57eba531f59178ece2f365 (diff)
downloadlibtdevnc-74c7c6cd847cdf062864af1d7826785d0584731b.tar.gz
libtdevnc-74c7c6cd847cdf062864af1d7826785d0584731b.zip
look for align bug with odd width. Bug in vncviewer?
Diffstat (limited to 'tabletranstemplate.c')
-rw-r--r--tabletranstemplate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tabletranstemplate.c b/tabletranstemplate.c
index 0d69f19..0aafff0 100644
--- a/tabletranstemplate.c
+++ b/tabletranstemplate.c
@@ -98,7 +98,7 @@ rfbTranslateWithRGBTablesINtoOUT (char *table, rfbPixelFormat *in,
OUT_T *blueTable = greenTable + in->greenMax + 1;
while (height > 0) {
- opLineEnd = op + width;
+ opLineEnd = &op[width];
while (op < opLineEnd) {
*(op++) = (redTable[(*ip >> in->redShift) & in->redMax] |