mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 02:11:08 +00:00
composetable: Fix an off-by-one
Fix an off-by-one in the code parsing octal escapes in compose files.
This commit is contained in:
parent
031944ad30
commit
52fb900ced
@ -100,8 +100,8 @@ parse_compose_value (GtkComposeData *compose_data,
|
|||||||
if (uch == '\0' && words[2][0] == '"')
|
if (uch == '\0' && words[2][0] == '"')
|
||||||
uch = '"';
|
uch = '"';
|
||||||
/* The escaped octal */
|
/* The escaped octal */
|
||||||
else if (uch >= '0' && uch <= '8')
|
else if (uch >= '0' && uch < '8')
|
||||||
uch = g_ascii_strtoll(words[1] + 1, NULL, 8);
|
uch = g_ascii_strtoll (words[1] + 1, NULL, 8);
|
||||||
/* If we need to handle other escape sequences. */
|
/* If we need to handle other escape sequences. */
|
||||||
else if (uch != '\\')
|
else if (uch != '\\')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user