From 32d3228d864cb6af8c679a7742f4b0a71c2facc0 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 13 Jul 2004 13:52:54 +0000 Subject: Bugfix in simple authentification. --- nest/password.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nest/password.c') diff --git a/nest/password.c b/nest/password.c index 0bc38f10..7f1c8dce 100644 --- a/nest/password.c +++ b/nest/password.c @@ -22,7 +22,7 @@ password_find(list *l) { WALK_LIST(pi, *l) { - if ((pi->genfrom > now) && (pi->gento < now)) + if ((pi->genfrom < now) && (pi->gento > now)) return pi; } } @@ -32,6 +32,6 @@ password_find(list *l) void password_cpy(char *dst, char *src, int size) { bzero(dst, size); - memcpy(dst, src, strlen(src) < (unsigned) size ? strlen(src) : (unsigned) size); + memcpy(dst, src, (strlen(src) < (unsigned) size ? strlen(src) : (unsigned) size)); } -- cgit v1.2.3