Skip to content

Fix the debug keyboard failing to type.#358

Open
SilverNexus2 wants to merge 1 commit intopspdev:masterfrom
SilverNexus2:fix-pspdebugkb
Open

Fix the debug keyboard failing to type.#358
SilverNexus2 wants to merge 1 commit intopspdev:masterfrom
SilverNexus2:fix-pspdebugkb

Conversation

@SilverNexus2
Copy link

A bug introduced in 332dd43 caused the keyboard to locally modify the source strings, and then discard the changes without writing them back to the original string.
This change drops the use of snprintf to perform the changes entirely, opting instead for twiddling the characters in-place. This required changing the bounds check to ensure there remains room for the null-terminator, and a call to strlen was refactored to be stored for the local scope.

A bug introduced in 332dd43 caused the keyboard to locally modify the source strings, and then discard the changes without writing them back to the original string.
This change drops the use of snprintf to perform the changes entirely, opting instead for twiddling the characters in-place.
This required changing the bounds check to ensure there remains room for the null-terminator, and a call to strlen was refactored to be stored for the local scope.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant