diff options
| author | Peter Åstrand <astrand@cendio.se> | 2014-10-28 03:37:20 +0100 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2014-10-28 04:14:24 +0100 |
| commit | d6797e53b429dbadd9a9f145731a5f90145bce83 (patch) | |
| tree | aff7991c977496f9018089438e26b9b1e5afa50c | |
| parent | 088524f0169cbc434098f30df6bca992e8a83b01 (diff) | |
Fix compile failure when X_HAVE_UTF8_STRING is not defined
| -rw-r--r-- | obt/keyboard.c | 2 |
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 |
