diff options
author | justsaumit <justsaumit@draconyan.xyz> | 2022-03-02 09:02:06 +0530 |
---|---|---|
committer | justsaumit <justsaumit@draconyan.xyz> | 2022-03-02 09:02:06 +0530 |
commit | 6ddf8b2836947e142fea54a3024bd3e1c29eff7c (patch) | |
tree | 9f910258da64fcaa2468cd9a4ab2dcea5b7e71b7 | |
parent | 1e84d0f0dd9fb5b3fcfcd4af88a823aa4f1f5b2a (diff) |
Password patch (-P) uses asterisks '*' instead of dots '.'
-rw-r--r-- | patches/2.dmenu-password-5.0.diff | 2 |
1 files changed, 1 insertions, 1 deletions
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); |