From 707de53457d7ab7c849c2fa3c8380f16c54680ad Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 24 Jan 2002 02:33:45 +0000 Subject: [PATCH] Another harmless size_t warning. --- authenticate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authenticate.c b/authenticate.c index 2b981195..d2b74cd8 100644 --- a/authenticate.c +++ b/authenticate.c @@ -105,8 +105,8 @@ static int get_secret(int module, char *user, char *secret, int len) while (!found) { int i = 0; - memset(line, 0, sizeof(line)); - while (i<(sizeof(line)-1)) { + memset(line, 0, sizeof line); + while ((size_t) i < (sizeof(line)-1)) { if (read(fd, &line[i], 1) != 1) { memset(line, 0, sizeof(line)); close(fd); -- 2.34.1