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
Make a special version number 2.3.0-beta for a short period because
[rsync/rsync.git]
/
socket.c
diff --git
a/socket.c
b/socket.c
index
6fd4e36
..
e7e98a6
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-67,7
+67,7
@@
static int open_socket_in(int type, int port)
{
struct hostent *hp;
struct sockaddr_in sock;
{
struct hostent *hp;
struct sockaddr_in sock;
- char host_name[
200
];
+ char host_name[
MAXHOSTNAMELEN
];
int res;
int one=1;
int res;
int one=1;
@@
-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));
}
}