Fix compile failure when X_HAVE_UTF8_STRING is not defined
Peter Åstrand astrand@cendio.se
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
obt/keyboard.c
→
obt/keyboard.c
@@ -329,7 +329,7 @@ if ((guchar)buf[0] >= 32) { /* not an ascii control character */
#ifndef X_HAVE_UTF8_STRING /* convert to utf8 */ gchar *buf2 = buf; - buf = g_locale_to_utf8(buf2, r, NULL, NULL, NULL); + buf = g_locale_to_utf8(buf2, len, NULL, NULL, NULL); g_free(buf2); #endif