Commit e645924c authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Stop preediting if strtoul couldn't parse the complete preedit string.

2004-10-26  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkimcontextsimple.c (check_hex): Stop preediting if strtoul couldn't
	parse the complete preedit string.  (#156434)
parent d8163210
2004-10-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimcontextsimple.c (check_hex): Stop preediting if strtoul couldn't
parse the complete preedit string. (#156434)
* gtk/gtkmessagedialog.c:
* gtk/gtkfilechooserbutton.c: Add missing includes. (#156503, Kazuki IWAMOTO)
......
2004-10-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimcontextsimple.c (check_hex): Stop preediting if strtoul couldn't
parse the complete preedit string. (#156434)
* gtk/gtkmessagedialog.c:
* gtk/gtkfilechooserbutton.c: Add missing includes. (#156503, Kazuki IWAMOTO)
......
2004-10-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimcontextsimple.c (check_hex): Stop preediting if strtoul couldn't
parse the complete preedit string. (#156434)
* gtk/gtkmessagedialog.c:
* gtk/gtkfilechooserbutton.c: Add missing includes. (#156503, Kazuki IWAMOTO)
......
2004-10-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimcontextsimple.c (check_hex): Stop preediting if strtoul couldn't
parse the complete preedit string. (#156434)
* gtk/gtkmessagedialog.c:
* gtk/gtkfilechooserbutton.c: Add missing includes. (#156503, Kazuki IWAMOTO)
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment