2006-07-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkimcontextsimple.c (gtk_im_context_simple_get_preedit_string):
0-terminate outbuf in all cases. (#348227, Nguyen Thái Ngoc Duy)
+2006-07-21 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkimcontextsimple.c (gtk_im_context_simple_get_preedit_string):
+ 0-terminate outbuf in all cases. (#348227, Nguyen Thái Ngoc Duy)
+
2006-07-21 Michael Natterer <mitch@imendio.com>
Enable symbolic colors and color expressions in style
+2006-07-21 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkimcontextsimple.c (gtk_im_context_simple_get_preedit_string):
+ 0-terminate outbuf in all cases. (#348227, Nguyen Thái Ngoc Duy)
+
2006-07-21 Michael Natterer <mitch@imendio.com>
Enable symbolic colors and color expressions in style
}
g_assert (len < 25);
- outbuf[len] = '\0';
}
else if (context_simple->tentative_match)
- {
- len = g_unichar_to_utf8 (context_simple->tentative_match, outbuf);
- }
- else
- {
- outbuf[0] = '\0';
- }
+ len = g_unichar_to_utf8 (context_simple->tentative_match, outbuf);
+ outbuf[len] = '\0';
+
if (str)
*str = g_strdup (outbuf);