diff options
author | Gary E. Miller <gem@rellim.com> | 2016-04-05 00:50:58 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-04-05 00:50:58 -0700 |
commit | e30203491a842d63254db19fe261971f98c50a36 (patch) | |
tree | c61256f7e63bf0728a8131deadaf05f0c99f6495 /net_ntrip.c | |
parent | d65a98f4cbeda45e37677c93fb0c38842c46f215 (diff) | |
download | gpsd-e30203491a842d63254db19fe261971f98c50a36.tar.gz |
Cleanup: atof() -> safe_atof()
Diffstat (limited to 'net_ntrip.c')
-rw-r--r-- | net_ntrip.c | 4 |
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); |