summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index ace2ed6c..3154bfd7 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1747,7 +1747,7 @@ static void netgnss_autoconnect(struct gps_context_t *context,
&& (tp == NULL || hold.dist > tp->dist))
tp = sp;
if (tp != NULL)
- memcpy(tp, &hold, sizeof(struct dgps_server_t));
+ *tp = hold;
}
}
(void)fclose(sfp);