summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2018-12-28 11:36:03 -0500
committerEric S. Raymond <esr@thyrsus.com>2018-12-28 11:39:43 -0500
commitcb19184e7718f062fc7c566bf5aa27bfedb913ef (patch)
treeef74da022fcc0d8aef7c6b59b66a1931e10ae61e /gps2udp.c
parent820594a2977f42739dbca9c25975598a3659b743 (diff)
downloadgpsd-cb19184e7718f062fc7c566bf5aa27bfedb913ef.tar.gz
CentOS port fix.
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);