summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/screenlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/screenlock.c b/sys/src/cmd/screenlock.c
index cbf4b9b8f..b010a0c17 100644
--- a/sys/src/cmd/screenlock.c
+++ b/sys/src/cmd/screenlock.c
@@ -24,7 +24,7 @@ readline(char *buf, int nbuf)
int i;
i = 0;
- while(i < nbuf-1)
+ while(i < nbuf-1){
if(read(0, &c, 1) != 1 || c == '\04' || c == '\177'){
i = 0;
break;
@@ -36,6 +36,8 @@ readline(char *buf, int nbuf)
i = 0;
else
buf[i++] = c;
+ blank = time(0);
+ }
buf[i] = '\0';
}
@@ -62,8 +64,6 @@ checkpassword(void)
break;
auth_freeAI(ai);
- blank = time(0);
-
border(screen, screen->r, 8, display->black, ZP);
flushimage(display, 1);
}