summaryrefslogtreecommitdiff
path: root/net_ntrip.c
diff options
context:
space:
mode:
Diffstat (limited to 'net_ntrip.c')
-rw-r--r--net_ntrip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net_ntrip.c b/net_ntrip.c
index 25b71205..f4a974b5 100644
--- a/net_ntrip.c
+++ b/net_ntrip.c
@@ -108,11 +108,11 @@ static void ntrip_str_parse(char *str, size_t len,
/* <latitude> */
hold->latitude = NAN;
if ((s = ntrip_field_iterate(NULL, s, eol, errout)))
- hold->latitude = atof(s);
+ hold->latitude = safe_atof(s);
/* <longitude> */
hold->longitude = NAN;
if ((s = ntrip_field_iterate(NULL, s, eol, errout)))
- hold->longitude = atof(s);
+ hold->longitude = safe_atof(s);
/* <nmea> */
if ((s = ntrip_field_iterate(NULL, s, eol, errout))) {
hold->nmea = atoi(s);