summaryrefslogtreecommitdiff
path: root/net_ntrip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-10 21:35:32 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-10 21:35:32 -0400
commit1b2ae0a79fb7ece3824336e28b072ba96f32ea01 (patch)
tree4d830b3141569b5fd62fdfa8714dd7462084c426 /net_ntrip.c
parent48c0b06a55c2a3fed0869d976fdc186c9051e24d (diff)
downloadgpsd-1b2ae0a79fb7ece3824336e28b072ba96f32ea01.tar.gz
Suppress Coverity false positives.
Diffstat (limited to 'net_ntrip.c')
-rw-r--r--net_ntrip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net_ntrip.c b/net_ntrip.c
index 98a9ebd0..5ef8ab0f 100644
--- a/net_ntrip.c
+++ b/net_ntrip.c
@@ -170,7 +170,7 @@ static int ntrip_sourcetable_parse(struct gps_device_t *device)
ssize_t rlen;
memset(&buf[len], 0, (size_t) (blen - len));
-
+ /* coverity[string_null] - guaranteed terminated by previous memset */
rlen = read(fd, &buf[len], (size_t) (blen - 1 - len));
if (rlen == -1) {
if (errno == EINTR) {
@@ -389,6 +389,7 @@ static int ntrip_stream_get_parse(const struct ntrip_stream_t *stream, int dsock
char buf[BUFSIZ];
int opts;
memset(buf, 0, sizeof(buf));
+ /* coverity[string_null] - guaranteed terminated by previous memset */
while (read(dsock, buf, sizeof(buf) - 1) == -1) {
if (errno == EINTR)
continue;