mirror of
https://github.com/mintycube/slock.git
synced 2024-10-22 14:05:51 +02:00
Properly clear the last entered character
When enter is pressed, passwd[len] will be set to '\0'. Pressing backspace is supposed to remove the last entered character. But currently, the clearing has an off-by-one, as in setting passwd[len] to '\0' just like enter would do. You can also verify it by imagining len=1 and that it's impossible to clear passwd[0] by pressing backspace with the current code. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
This commit is contained in:
parent
2d2a21a90a
commit
35633d4567
Loading…
Reference in New Issue
Block a user