diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-02-22 18:20:23 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-02-22 18:20:23 -0500 |
commit | 96452c60d9eff045a7e1d5892a66cedf4710ca62 (patch) | |
tree | a8422a4efa5097ff5d15a5141739462beb93c840 /net_ntrip.c | |
parent | 7ff55c0c64bc5c930315375529bffdde318d6ef6 (diff) | |
download | gpsd-96452c60d9eff045a7e1d5892a66cedf4710ca62.tar.gz |
strcpy() elimination.
Diffstat (limited to 'net_ntrip.c')
-rw-r--r-- | net_ntrip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net_ntrip.c b/net_ntrip.c index f9ff556c..c853f82c 100644 --- a/net_ntrip.c +++ b/net_ntrip.c @@ -477,7 +477,7 @@ int ntrip_open(struct gps_device_t *dev, char *caster) switch (context->ntrip_conn_state) { case ntrip_conn_init: ntrip_stream.set = false; - strcpy(tmp, caster); + (void)strlcpy(tmp, caster, strlen(caster)); /*@ -boolops @*/ if ((amp = strchr(tmp, '@')) != NULL) { |