summaryrefslogtreecommitdiffstats
path: root/tabletranstemplate.c
diff options
context:
space:
mode:
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] |