GString *str;
gulong n;
gchar *nptr = NULL;
+ gchar buf[7];
str = g_string_new (NULL);
while (i < n_compose)
{
gunichar ch;
- gchar buf[7];
ch = gdk_keyval_to_unicode (context_simple->compose_buffer[i]);
len = g_unichar_to_utf8 (context_simple->tentative_match, outbuf);
}
- g_assert (len <= 25);
+ g_assert (len < 25);
outbuf[len] = '\0';
}
+ else
+ {
+ outbuf[0] = '\0';
+ }
if (str)
*str = g_strdup (outbuf);