diff options
author | Zbigniew Chyla <zbigniew.chyla@nsn.com> | 2015-01-07 11:04:00 +0100 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-13 07:23:22 -0500 |
commit | ab92f1d0a7926543fe836357c4fa56953f331ec0 (patch) | |
tree | 24ad31d2fdd7914f717b60f08a128bad2ef440dc /net_ntrip.c | |
parent | 18d76d6bda59a9eb0a3f062fac91f481babcbdf4 (diff) | |
download | gpsd-ab92f1d0a7926543fe836357c4fa56953f331ec0.tar.gz |
Always use sizeof to get array size, part 2
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 be8db7ca..5d7617ba 100644 --- a/net_ntrip.c +++ b/net_ntrip.c @@ -469,7 +469,7 @@ int ntrip_open(struct gps_device_t *device, char *caster) device->ntrip.works = false; device->ntrip.sourcetable_parse = false; device->ntrip.stream.set = false; - (void)strlcpy(tmp, caster, strlen(caster) + 1); + (void)strlcpy(tmp, caster, sizeof(t)); /*@ -boolops @*/ if ((amp = strchr(tmp, '@')) != NULL) { |