[hackers] [slock] add a comment for the ctrl-u clear field combo || Hiltjo Posthuma
commit 3791a996e230aec59d61faea46634ae4f031e359
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sat Aug 16 11:11:27 2025 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sat Aug 16 11:11:27 2025 +0200
add a comment for the ctrl-u clear field combo
diff --git a/slock.c b/slock.c
index b5d05b1..f16781f 100644
--- a/slock.c
+++ b/slock.c
_AT_@ -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;
}
Received on Sat Aug 16 2025 - 11:12:04 CEST
This archive was generated by hypermail 2.3.0
: Sat Aug 16 2025 - 11:12:55 CEST