Skip to content

Commit

Permalink
Fix yet another off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
FenrirWolf committed Feb 15, 2024
1 parent 3340fae commit 0e0b9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctru-rs/src/applets/swkbd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ impl SoftwareKeyboard {
let text16 = unsafe {
widestring::Utf16Str::from_slice_unchecked(std::slice::from_raw_parts(
SWKBD_SHARED_MEM.add(swkbd.text_offset as _).cast(),
swkbd.text_length as usize + 1,
swkbd.text_length as _,
))
};

Expand Down

0 comments on commit 0e0b9ae

Please sign in to comment.