M README.md => README.md +2 -2
@@ 1,5 1,5 @@
-Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this slock 1.6 (e3fb343,
-2025-08-09) project has a different take on patching. It uses preprocessor directives to decide
+Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this slock 1.6 (3791a99,
+2025-08-16) project has a different take on patching. It uses preprocessor directives to decide
whether or not to include a patch during build time. Essentially this means that this build, for
better or worse, contains both the patched _and_ the original code. The aim being that you can
select which patches to include and the build will contain that code and nothing more.
M slock.c => slock.c +3 -0
@@ 403,6 403,9 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
{
memcpy(passwd + len, buf, num);
len += num;
+ } else if (buf[0] == '\025') { /* ctrl-u clears input */
+ explicit_bzero(&passwd, sizeof(passwd));
+ len = 0;
}
#if KEYPRESS_FEEDBACK_PATCH
if (blocks_enabled)