From 74c7c6cd847cdf062864af1d7826785d0584731b Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 25 Sep 2001 22:56:14 +0000 Subject: look for align bug with odd width. Bug in vncviewer? --- tabletranstemplate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tabletranstemplate.c') 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] | -- cgit v1.2.1