From d3249671a21c60590836147c8a8e171942e76902 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Mon, 5 Apr 2021 16:59:58 +0100 Subject: [PATCH] Fix palette-related segfault with Gtk<3. This was introduced in ca9cd983e1. --- unix/gtkwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/gtkwin.c b/unix/gtkwin.c index 6a55fb8c..7b6b912b 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -2590,7 +2590,7 @@ static void gtkwin_palette_set(TermWin *tw, unsigned start, unsigned ncolours, #if !GTK_CHECK_VERSION(3,0,0) { gboolean success[OSC4_NCOLOURS]; - gdk_colormap_alloc_colors(inst->colmap + start, inst->cols + start, + gdk_colormap_alloc_colors(inst->colmap, inst->cols + start, ncolours, false, true, success); for (unsigned i = 0; i < ncolours; i++) { if (!success[i])