fix compile warning. (Not really tested...it's a test app)

This commit is contained in:
Eric House 2015-07-01 06:35:47 -07:00
parent 0102cde2c3
commit 6d768972db

View file

@ -252,8 +252,8 @@ connect_socket( void )
struct hostent* hostip;
hostip = gethostbyname( g_host );
memcpy( &(to_sock.sin_addr.s_addr), hostip->h_addr_list[0],
sizeof(hostip->h_addr_list[0] ) );
memcpy( &(to_sock.sin_addr.s_addr), &hostip->h_addr_list[0],
sizeof(hostip->h_addr_list[0]) );
if ( 0 != connect( sockfd, (const struct sockaddr*)&to_sock,
sizeof(to_sock) ) ) {