diff options
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r-- | gtk/gtkimcontextsimple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index 40f8ac2826..00809ec90a 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -1167,7 +1167,7 @@ check_hex (GtkIMContextSimple *context_simple, /* if strtoul fails it probably means non-latin digits were used; * we should in principle handle that, but we probably don't. */ - if (str->str == nptr) + if (nptr - str->str < str->len) { g_string_free (str, TRUE); return FALSE; |