summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
authorZbigniew Chyla <zbigniew.chyla@nokia.com>2015-05-02 01:35:33 +0200
committerEric S. Raymond <esr@thyrsus.com>2015-05-31 11:39:57 -0400
commite1fc91c4288459d0cc5eef3e2108f429ced4fc86 (patch)
treed8a6eeb27c2a87557fafe76ce2c68cbaee4521f2 /gps2udp.c
parent967c40b2f75321ca93408fde1f577e69f501cfc7 (diff)
downloadgpsd-e1fc91c4288459d0cc5eef3e2108f429ced4fc86.tar.gz
Copy structs using assignment, not memcpy().
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 77d32be3..af36f1ad 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -240,7 +240,7 @@ static ssize_t read_gpsd(char *message, size_t len)
/* prepare for a blocking read with a 10s timeout */
tv.tv_sec = 10;
tv.tv_usec = 0;
- memcpy(&fds, &master, sizeof(fd_set));
+ fds = master;
result = select(gpsdata.gps_fd+1, &fds, NULL, NULL, &tv);
switch (result)