diff --git a/ctru-rs/src/applets/swkbd.rs b/ctru-rs/src/applets/swkbd.rs index c5f386c..ce2ab69 100644 --- a/ctru-rs/src/applets/swkbd.rs +++ b/ctru-rs/src/applets/swkbd.rs @@ -830,8 +830,8 @@ impl SoftwareKeyboard { if let Some(msg) = retmsg.as_deref() { for (idx, code_unit) in msg .encode_utf16() - .chain(once(0)) .take(swkbd.callback_msg.len() - 1) + .chain(once(0)) .enumerate() { swkbd.callback_msg[idx] = code_unit;