summaryrefslogtreecommitdiff
path: root/apps/hosted
diff options
context:
space:
mode:
Diffstat (limited to 'apps/hosted')
-rw-r--r--apps/hosted/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/hosted/keyboard.c b/apps/hosted/keyboard.c
index b395168156..be5c70c896 100644
--- a/apps/hosted/keyboard.c
+++ b/apps/hosted/keyboard.c
@@ -68,7 +68,7 @@ int kbd_input(char* text, int buflen)
68 ret = e->CallObjectMethod(env_ptr, RockboxKeyboardInput_instance, kbd_result); 68 ret = e->CallObjectMethod(env_ptr, RockboxKeyboardInput_instance, kbd_result);
69 } while (!ret); 69 } while (!ret);
70 70
71 e->ReleaseStringChars(env_ptr, str, NULL); 71 e->ReleaseStringUTFChars(env_ptr, str, NULL);
72 retchars = e->GetStringUTFChars(env_ptr, ret, 0); 72 retchars = e->GetStringUTFChars(env_ptr, ret, 0);
73 if (retchars[0]) 73 if (retchars[0])
74 snprintf(text, buflen, retchars); 74 snprintf(text, buflen, retchars);