summaryrefslogtreecommitdiff
path: root/net_ntrip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-09 20:39:08 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-09 20:39:08 -0400
commitdbf6d322945e68fce36afd6dba75ab56d60b0c86 (patch)
tree265e06731212d3070128ffb214baf1a54bf48203 /net_ntrip.c
parent398094402837f5deb31bd8e479fc04c5f27c1edf (diff)
downloadgpsd-dbf6d322945e68fce36afd6dba75ab56d60b0c86.tar.gz
More coverity-inspired fixes.
All regression tests pass ans soint runs clean.
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 d2587689..a107de7b 100644
--- a/net_ntrip.c
+++ b/net_ntrip.c
@@ -439,7 +439,7 @@ int ntrip_open(struct gps_device_t *device, char *caster)
char *stream = NULL;
char *url = NULL;
int ret = -1;
- char t[strlen(caster + 1)];
+ char t[strlen(caster) + 1];
char *tmp = t;
switch (device->ntrip.conn_state) {