diff options
-rw-r--r-- | slock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -177,7 +177,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, | |||
177 | break; | 177 | break; |
178 | case XK_BackSpace: | 178 | case XK_BackSpace: |
179 | if (len) | 179 | if (len) |
180 | passwd[len--] = '\0'; | 180 | passwd[--len] = '\0'; |
181 | break; | 181 | break; |
182 | default: | 182 | default: |
183 | if (num && !iscntrl((int)buf[0]) && | 183 | if (num && !iscntrl((int)buf[0]) && |