summaryrefslogtreecommitdiffstats
path: root/vncterm/VNConsole.c
diff options
context:
space:
mode:
Diffstat (limited to 'vncterm/VNConsole.c')
-rw-r--r--vncterm/VNConsole.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vncterm/VNConsole.c b/vncterm/VNConsole.c
index 1335aee..72e2fdc 100644
--- a/vncterm/VNConsole.c
+++ b/vncterm/VNConsole.c
@@ -29,9 +29,7 @@ void MakeColourMap16(vncConsolePtr c)
if(colourMap->count)
free(colourMap->data.bytes);
colourMap->data.bytes=malloc(16*3);
- for(i=0;i<16;i++)
- for(j=0;j<3;j++)
- colourMap->data.bytes[i*3+2-j]=colourMap16[i*3+j];
+ memcpy(colourMap->data.bytes,colourMap16,16*3);
colourMap->count=16;
colourMap->is16=FALSE;
c->rfbScreen->rfbServerFormat.trueColour=FALSE;