summaryrefslogtreecommitdiff
path: root/subframe.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-29 11:13:59 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-29 11:13:59 -0400
commita0ce32af15add094f888efb3f1b8ee33d7baa990 (patch)
tree1f66a07eb591b734e9d66d43fe92d782a9ac3b6b /subframe.c
parent173c43dbc016bc44bc62a852526a87b78817d636 (diff)
downloadgpsd-a0ce32af15add094f888efb3f1b8ee33d7baa990.tar.gz
scan-build cleanup. All regression tests pass, code splints clean.
Diffstat (limited to 'subframe.c')
-rw-r--r--subframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subframe.c b/subframe.c
index 829dc4ff..2c219571 100644
--- a/subframe.c
+++ b/subframe.c
@@ -655,7 +655,7 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session,
subp->sub4_17.str[i++] = (words[9] >> 16) & 0xff;
subp->sub4_17.str[i++] = (words[9] >> 8) & 0xff;
- subp->sub4_17.str[i++] = '\0';
+ subp->sub4_17.str[i] = '\0';
/*@ +type @*/
gpsd_report(LOG_PROG, "50B: SF:4-17 system message: %.24s\n",
subp->sub4_17.str);