]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/pterm.c
Fix divide overflow in internal_mod(). Thanks to William Petiot for
[PuTTY.git] / unix / pterm.c
index 23ef37fbb605dfa098fd99ae88d441b9aff214e6..54ab31d8a4e71fc0a643c29f9fc7cb5ed376a946 100644 (file)
@@ -2163,7 +2163,7 @@ void do_cursor(Context ctx, int x, int y, wchar_t *text, int len,
            length = inst->font_height;
        }
 
-       gdk_gc_set_foreground(gc, &inst->cols[NCFGCOLOURS-1]);
+       gdk_gc_set_foreground(gc, &inst->cols[261]);
        if (passive) {
            for (i = 0; i < length; i++) {
                if (i % 2 == 0) {