Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10f83cf
)
Another harmless size_t warning.
author
Martin Pool
<mbp@samba.org>
Thu, 24 Jan 2002 02:33:45 +0000
(
02:33
+0000)
committer
Martin Pool
<mbp@samba.org>
Thu, 24 Jan 2002 02:33:45 +0000
(
02:33
+0000)
authenticate.c
patch
|
blob
|
blame
|
history
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);