summaryrefslogtreecommitdiff
path: root/net_ntrip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-22 18:20:23 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-22 18:20:23 -0500
commit96452c60d9eff045a7e1d5892a66cedf4710ca62 (patch)
treea8422a4efa5097ff5d15a5141739462beb93c840 /net_ntrip.c
parent7ff55c0c64bc5c930315375529bffdde318d6ef6 (diff)
downloadgpsd-96452c60d9eff045a7e1d5892a66cedf4710ca62.tar.gz
strcpy() elimination.
Diffstat (limited to 'net_ntrip.c')
-rw-r--r--net_ntrip.c2
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) {