mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Fix palette-related segfault with Gtk<3.
This was introduced in ca9cd983e1
.
This commit is contained in:
parent
ec23a6b5f4
commit
d3249671a2
@ -2590,7 +2590,7 @@ static void gtkwin_palette_set(TermWin *tw, unsigned start, unsigned ncolours,
|
|||||||
#if !GTK_CHECK_VERSION(3,0,0)
|
#if !GTK_CHECK_VERSION(3,0,0)
|
||||||
{
|
{
|
||||||
gboolean success[OSC4_NCOLOURS];
|
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);
|
ncolours, false, true, success);
|
||||||
for (unsigned i = 0; i < ncolours; i++) {
|
for (unsigned i = 0; i < ncolours; i++) {
|
||||||
if (!success[i])
|
if (!success[i])
|
||||||
|
Loading…
Reference in New Issue
Block a user