summaryrefslogtreecommitdiff
path: root/nest/password.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/password.c')
-rw-r--r--nest/password.c4
1 files changed, 2 insertions, 2 deletions
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));
}