Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
long int fix from Nelson Beebe
[rsync/rsync.git]
/
authenticate.c
diff --git
a/authenticate.c
b/authenticate.c
index
2b98119
..
d2b74cd
100644
(file)
--- 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);