summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index b9f01a61..e7e98a69 100644
--- 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;