accelgroup: Fix an invalid write

This was lost by accident in d110fddbce.

Fixes: #2602
This commit is contained in:
Matthias Clasen 2020-04-10 08:24:03 -04:00
parent 8780906b93
commit ad1bc75dd2

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)