diff --git a/ctru-rs/src/applets/error.rs b/ctru-rs/src/applets/error.rs index 44fff08..8e323be 100644 --- a/ctru-rs/src/applets/error.rs +++ b/ctru-rs/src/applets/error.rs @@ -61,8 +61,8 @@ impl PopUp { pub fn set_text(&mut self, text: &str) { for (idx, code_unit) in text .encode_utf16() - .chain(std::iter::once(0)) .take(self.state.Text.len() - 1) + .chain(std::iter::once(0)) .enumerate() { self.state.Text[idx] = code_unit;