From 691bfb1f03d80ec2db1d9512ec598dffa936d143 Mon Sep 17 00:00:00 2001 From: Ted Meyer Date: Thu, 24 Mar 2016 01:01:33 -0400 Subject: [PATCH] trigger the alert on enter if nothing is input --- robolock.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/robolock.c b/robolock.c index 0e5dae8..dfb6ed1 100644 --- a/robolock.c +++ b/robolock.c @@ -507,20 +507,18 @@ void readpw(Display *disp, const char *pws, lock_t *locks, unsigned int numlocks switch(ksym){ case XK_Return: passwd[len] = 0; - if(len){ - running = !!strcmp(crypt(passwd, pws), pws); - if(running){ - unsigned int i; - for(i= 0; i