From 6ddf8b2836947e142fea54a3024bd3e1c29eff7c Mon Sep 17 00:00:00 2001 From: justsaumit Date: Wed, 2 Mar 2022 09:02:06 +0530 Subject: Password patch (-P) uses asterisks '*' instead of dots '.' --- patches/2.dmenu-password-5.0.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'patches') diff --git a/patches/2.dmenu-password-5.0.diff b/patches/2.dmenu-password-5.0.diff index 7a187b9..1cfaa61 100644 --- a/patches/2.dmenu-password-5.0.diff +++ b/patches/2.dmenu-password-5.0.diff @@ -59,7 +59,7 @@ index 65f25ce..ad8f63b 100644 - drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); + if (passwd) { + censort = ecalloc(1, sizeof(text)); -+ memset(censort, '.', strlen(text)); ++ memset(censort, '*', strlen(text)); + drw_text(drw, x, 0, w, bh, lrpad / 2, censort, 0); + free(censort); + } else drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); -- cgit v1.2.3