Use MAXHOSTNAMELEN (256) for the array holding the host_name in socket.c
[rsync/rsync.git] / socket.c
index b9f01a6..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;
-       char host_name[200];
+       char host_name[MAXHOSTNAMELEN];
        int res;
        int one=1;