slock
simple X display locker utility
git clone https://9o.is/git/slock.git
commit 51ab95b3c4f57581e9d757416028cd2233668084 parent 59c8bf73a0359739ee67461f6869c4ac4b40078b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 16 Aug 2025 11:11:27 +0200 add a comment for the ctrl-u clear field combo Diffstat:
| M | slock.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/slock.c b/slock.c @@ -185,7 +185,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, (len + num < sizeof(passwd))) { memcpy(passwd + len, buf, num); len += num; - } else if (buf[0] == '\025') { + } else if (buf[0] == '\025') { /* ctrl-u clears input */ explicit_bzero(&passwd, sizeof(passwd)); len = 0; }