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
Change documentation to explain that a lack of -t in effect causes -I to be
[rsync/rsync.git]
/
socket.c
diff --git
a/socket.c
b/socket.c
index
6fd4e36
..
b9f01a6
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-330,7
+330,7
@@
char *client_addr(int fd)
exit_cleanup(RERR_SOCKETIO);
}
exit_cleanup(RERR_SOCKETIO);
}
- strlcpy(addr_buf,(char *)inet_ntoa(sockin->sin_addr), sizeof(addr_buf)
-1
);
+ strlcpy(addr_buf,(char *)inet_ntoa(sockin->sin_addr), sizeof(addr_buf));
return addr_buf;
}
return addr_buf;
}
@@
-363,7
+363,7
@@
char *client_name(int fd)
if ((hp = gethostbyaddr((char *) &sockin->sin_addr,
sizeof(sockin->sin_addr),
AF_INET))) {
if ((hp = gethostbyaddr((char *) &sockin->sin_addr,
sizeof(sockin->sin_addr),
AF_INET))) {
- strlcpy(name_buf,(char *)hp->h_name,sizeof(name_buf)
- 1
);
+ strlcpy(name_buf,(char *)hp->h_name,sizeof(name_buf));
}
}