From 366f4d4b1b792f4159a3832bf063582d0831bd2c Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Wed, 3 Jan 2024 19:34:27 +0100 Subject: [PATCH] Zero bufsize for parental lock --- ctru-rs/src/applets/swkbd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctru-rs/src/applets/swkbd.rs b/ctru-rs/src/applets/swkbd.rs index c6325e7..c38764b 100644 --- a/ctru-rs/src/applets/swkbd.rs +++ b/ctru-rs/src/applets/swkbd.rs @@ -691,7 +691,7 @@ impl ParentalLock { pub fn launch(&mut self, apt: &Apt, gfx: &Gfx) -> Result<(), Error> { unsafe { let mut buf = [0; 0]; - ctru_sys::swkbdInputText(self.state.as_mut(), buf.as_mut_ptr(), 10); + ctru_sys::swkbdInputText(self.state.as_mut(), buf.as_mut_ptr(), 0); let e = self.state.result.into(); match e {