summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2014-10-28 03:37:20 +0100
committerMikael Magnusson <mikachu@gmail.com>2014-10-28 04:14:24 +0100
commitd6797e53b429dbadd9a9f145731a5f90145bce83 (patch)
treeaff7991c977496f9018089438e26b9b1e5afa50c
parent088524f0169cbc434098f30df6bca992e8a83b01 (diff)
Fix compile failure when X_HAVE_UTF8_STRING is not defined
-rw-r--r--obt/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/obt/keyboard.c b/obt/keyboard.c
index 4e84f481..60caf0e3 100644
--- a/obt/keyboard.c
+++ b/obt/keyboard.c
@@ -329,7 +329,7 @@ gunichar obt_keyboard_keypress_to_unichar(ObtIC *ic, XEvent *ev)
#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