aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2025-08-16 11:11:27 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2025-08-16 11:11:27 +0200
commit3791a996e230aec59d61faea46634ae4f031e359 (patch)
treee8e65f9c0de987ef8f2098f87d9b14382be680dc
parentbf0a5577acbd9ec7c6a577601b97144b205840d7 (diff)
downloadslock-3791a996e230aec59d61faea46634ae4f031e359.tar.gz
slock-3791a996e230aec59d61faea46634ae4f031e359.tar.xz
add a comment for the ctrl-u clear field combo
-rw-r--r--slock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slock.c b/slock.c
index b5d05b1..f16781f 100644
--- 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;
}