diff options
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>
Diffstat (limited to '%2525252525253fid%2525252525253d265704d73647e0d4823126bbb7ddde1d415a618d%25252525253fid%25252525253d265704d73647e0d4823126bbb7ddde1d415a618d&id2%25252525253d35633d45672d14bd798c478c45d1a17064701aa9%252525253fid%252525253d265704d73647e0d4823126bbb7ddde1d415a618d%2525253fid%2525253d265704d73647e0d4823126bbb7ddde1d415a618d&id2%2525253d35633d45672d14bd798c478c45d1a17064701aa9%25253fid%25253d265704d73647e0d4823126bbb7ddde1d415a618d%253fid%253d265704d73647e0d4823126bbb7ddde1d415a618d&id2%253d35633d45672d14bd798c478c45d1a17064701aa9%3fid%3d265704d73647e0d4823126bbb7ddde1d415a618d?id=35633d45672d14bd798c478c45d1a17064701aa9')
0 files changed, 0 insertions, 0 deletions