diff options
author | Martin Pool <mbp@samba.org> | 2002-01-24 02:33:45 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-01-24 02:33:45 +0000 |
commit | 707de53457d7ab7c849c2fa3c8380f16c54680ad (patch) | |
tree | 2e785ab20f92fb2baa03ca7ca9f7e95184f45189 /authenticate.c | |
parent | 10f83cf43d69bcd090044899fc8235a7f38264c7 (diff) | |
download | android_external_rsync-707de53457d7ab7c849c2fa3c8380f16c54680ad.tar.gz android_external_rsync-707de53457d7ab7c849c2fa3c8380f16c54680ad.tar.bz2 android_external_rsync-707de53457d7ab7c849c2fa3c8380f16c54680ad.zip |
Another harmless size_t warning.
Diffstat (limited to 'authenticate.c')
-rw-r--r-- | authenticate.c | 4 |
1 files 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); |