aboutsummaryrefslogtreecommitdiff
path: root/slock.c
diff options
context:
space:
mode:
Diffstat (limited to 'slock.c')
-rw-r--r--slock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/slock.c b/slock.c
index b5a9b04..b5d05b1 100644
--- a/slock.c
+++ b/slock.c
@@ -185,6 +185,9 @@ 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') {
+ explicit_bzero(&passwd, sizeof(passwd));
+ len = 0;
}
break;
}