mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
imcontext: Allow sequences of length GTK_MAX_COMPOSE_LEN
There was an off-by-one error, making us reject sequences of this length. But the rest of the code handles them just fine. Fixes: #2319
This commit is contained in:
parent
162814f969
commit
094a346539
@ -189,7 +189,7 @@ parse_compose_sequence (GtkComposeData *compose_data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_strfreev (words);
|
g_strfreev (words);
|
||||||
if (0 == n || n >= GTK_MAX_COMPOSE_LEN)
|
if (0 == n || n > GTK_MAX_COMPOSE_LEN)
|
||||||
{
|
{
|
||||||
g_warning ("The max length of compose sequences is %d: %s",
|
g_warning ("The max length of compose sequences is %d: %s",
|
||||||
GTK_MAX_COMPOSE_LEN, line);
|
GTK_MAX_COMPOSE_LEN, line);
|
||||||
|
Loading…
Reference in New Issue
Block a user