diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-09-24 12:39:00 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-09-24 12:39:00 -0400 |
commit | 20cbe3b5c797aaf689a8eaa5ba351d72aa2b34f2 (patch) | |
tree | 28c4212442e93c84b5c10b9fb9faacd5d542f4cf /gps2udp.c | |
parent | 0b0002bb648c925781936c15706f26db79f6f97d (diff) | |
download | gpsd-20cbe3b5c797aaf689a8eaa5ba351d72aa2b34f2.tar.gz |
Coverity cleanup.
Diffstat (limited to 'gps2udp.c')
-rw-r--r-- | gps2udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |