summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-09-24 12:39:00 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-09-24 12:39:00 -0400
commit20cbe3b5c797aaf689a8eaa5ba351d72aa2b34f2 (patch)
tree28c4212442e93c84b5c10b9fb9faacd5d542f4cf /gps2udp.c
parent0b0002bb648c925781936c15706f26db79f6f97d (diff)
downloadgpsd-20cbe3b5c797aaf689a8eaa5ba351d72aa2b34f2.tar.gz
Coverity cleanup.
Diffstat (limited to 'gps2udp.c')
-rw-r--r--gps2udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps2udp.c b/gps2udp.c
index 9938a12f..52eaa29e 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -88,7 +88,7 @@ static int send_udp (char *nmeastring, size_t ind)
if (ind == 0) {
/* compute message size and add 0x0a 0x0d */
for (ind=0; nmeastring [ind] != '\0'; ind ++) {
- if (ind > sizeof(message)) {
+ if (ind >= sizeof(message)) {
fprintf(stderr, "gps2udp: too big [%s] \n", nmeastring);
return -1;
}