diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2018-12-28 11:36:03 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2018-12-28 11:39:43 -0500 |
commit | cb19184e7718f062fc7c566bf5aa27bfedb913ef (patch) | |
tree | ef74da022fcc0d8aef7c6b59b66a1931e10ae61e /gps2udp.c | |
parent | 820594a2977f42739dbca9c25975598a3659b743 (diff) | |
download | gpsd-cb19184e7718f062fc7c566bf5aa27bfedb913ef.tar.gz |
CentOS port fix.
Diffstat (limited to 'gps2udp.c')
-rw-r--r-- | gps2udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |