diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-02-01 08:40:31 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-02-01 12:10:05 -0500 |
commit | 52fb900cedeaa2b7ef42d7373c85c00ab054d1ba (patch) | |
tree | d3a4af5a2a0a0ee6e02f2dab15a4dc64b6b8cff4 | |
parent | 031944ad30cd84daab52dcf88b95ec3425f72952 (diff) | |
download | gtk+-52fb900cedeaa2b7ef42d7373c85c00ab054d1ba.tar.gz |
composetable: Fix an off-by-one
Fix an off-by-one in the code parsing octal escapes
in compose files.
-rw-r--r-- | gtk/gtkcomposetable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c index 901a7ecbf9..94e3421f7b 100644 --- a/gtk/gtkcomposetable.c +++ b/gtk/gtkcomposetable.c @@ -100,8 +100,8 @@ parse_compose_value (GtkComposeData *compose_data, if (uch == '\0' && words[2][0] == '"') uch = '"'; /* The escaped octal */ - else if (uch >= '0' && uch <= '8') - uch = g_ascii_strtoll(words[1] + 1, NULL, 8); + else if (uch >= '0' && uch < '8') + uch = g_ascii_strtoll (words[1] + 1, NULL, 8); /* If we need to handle other escape sequences. */ else if (uch != '\\') { |