aboutsummaryrefslogtreecommitdiffstats
path: root/authenticate.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-01-24 02:33:45 +0000
committerMartin Pool <mbp@samba.org>2002-01-24 02:33:45 +0000
commit707de53457d7ab7c849c2fa3c8380f16c54680ad (patch)
tree2e785ab20f92fb2baa03ca7ca9f7e95184f45189 /authenticate.c
parent10f83cf43d69bcd090044899fc8235a7f38264c7 (diff)
downloadandroid_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.c4
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);