Browse Source

Zero bufsize for parental lock

pull/149/head
Andrea Ciliberti 12 months ago
parent
commit
366f4d4b1b
  1. 2
      ctru-rs/src/applets/swkbd.rs

2
ctru-rs/src/applets/swkbd.rs

@ -691,7 +691,7 @@ impl ParentalLock { @@ -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 {

Loading…
Cancel
Save