summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gps2udp.c')
-rw-r--r--gps2udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps2udp.c b/gps2udp.c
index b8b9c61f..d4cfa9b9 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -181,7 +181,7 @@ static int open_udp(char **hostport)
return (-1);
}
- memcpy( &remote[channel].sin_addr, hp->h_addr, hp->h_length);
+ memcpy( &remote[channel].sin_addr, hp->h_addr_list[0], hp->h_length);
remote[channel].sin_port = htons((in_port_t)portnum);
}
return (0);