Date: Wednesday, October 5, 2022 @ 15:27:55
  Author: blakkheim
Revision: 1321607

delete no-longer-needed patch

Deleted:
  slock/trunk/backspace.patch

-----------------+
 backspace.patch |   30 ------------------------------
 1 file changed, 30 deletions(-)

Deleted: backspace.patch
===================================================================
--- backspace.patch     2022-10-05 15:24:24 UTC (rev 1321606)
+++ backspace.patch     2022-10-05 15:27:55 UTC (rev 1321607)
@@ -1,30 +0,0 @@
-commit 35633d45672d14bd798c478c45d1a17064701aa9
-Author: Tobias Stoeckmann <[email protected]>
-Date:   Sat Mar 25 21:16:01 2017 +0100
-
-    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 <[email protected]>
-
-diff --git a/slock.c b/slock.c
-index d55eb3d..5ae738c 100644
---- a/slock.c
-+++ b/slock.c
-@@ -177,7 +177,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock 
**locks, int nscreens,
-                               break;
-                       case XK_BackSpace:
-                               if (len)
--                                      passwd[len--] = '\0';
-+                                      passwd[--len] = '\0';
-                               break;
-                       default:
-                               if (num && !iscntrl((int)buf[0]) &&

Reply via email to