diff --git a/ctru-rs/src/applets/swkbd.rs b/ctru-rs/src/applets/swkbd.rs index cf763b2..c6ad7d8 100644 --- a/ctru-rs/src/applets/swkbd.rs +++ b/ctru-rs/src/applets/swkbd.rs @@ -809,12 +809,12 @@ impl SoftwareKeyboard { SWKBD_SHARED_MEM .add((*swkbd).text_offset as _) .cast::(), - (*swkbd).text_length as usize + 1, + (*swkbd).text_length as usize, )) .unwrap() } } else { - widestring::utf16str!("\0") + widestring::utf16str!("") }; buf.extend(text16.encode_utf8());