summaryrefslogtreecommitdiffstats
path: root/x11vnc/8to24.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/8to24.c')
-rw-r--r--x11vnc/8to24.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/x11vnc/8to24.c b/x11vnc/8to24.c
index c7bf0d1..394480d 100644
--- a/x11vnc/8to24.c
+++ b/x11vnc/8to24.c
@@ -1359,6 +1359,8 @@ static int get_cmap(int j, Colormap cmap) {
X_LOCK;
ncells = CellsOfScreen(ScreenOfDisplay(dpy, scr));
X_UNLOCK;
+ } else {
+ ncells = NCOLOR;
}
if (db24 > 1) fprintf(stderr, "get_cmap: %d 0x%x\n", j, (unsigned int) cmap);
OpenPOWER on IntegriCloud