Merge branch 'fix-accel-length' into 'master'

accelgroup: Fix an invalid write

Closes #2602

See merge request GNOME/gtk!1660
This commit is contained in:
Matthias Clasen 2020-04-10 13:27:07 +00:00
commit 2bd36d490b

View File

@ -592,7 +592,7 @@ gtk_accelerator_name (guint accelerator_key,
keyval_name = "";
saved_mods = accelerator_mods;
l = 0;
l = strlen (keyval_name);
if (accelerator_mods & GDK_SHIFT_MASK)
l += sizeof (text_shift) - 1;
if (accelerator_mods & GDK_CONTROL_MASK)