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

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)
parent c095ee26
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
......
......@@ -1540,17 +1540,12 @@ gtk_im_context_simple_get_preedit_string (GtkIMContext *context,
}
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);
......
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