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)
/* 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;