summaryrefslogtreecommitdiff
path: root/sirfmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-05-26 22:47:47 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-05-26 22:47:47 +0000
commitc1ac87b114bef574d1ae200f1068ff6f76c919e7 (patch)
tree73076924414786a6eb74a71fada539a68680719f /sirfmon.c
parentc9d8489fbb4eb4d33f6aeb209da6c5fb5b009751 (diff)
downloadgpsd-c1ac87b114bef574d1ae200f1068ff6f76c919e7.tar.gz
1474 splint warnings.
Diffstat (limited to 'sirfmon.c')
-rw-r--r--sirfmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sirfmon.c b/sirfmon.c
index 2c7aa059..4c2c6dd1 100644
--- a/sirfmon.c
+++ b/sirfmon.c
@@ -122,7 +122,7 @@ static void nmea_add_checksum(char *sentence)
p++;
}
*p++ = '*';
- (void)snprintf(p, 4, "%02X\r\n", (unsigned int)sum);
+ (void)snprintf(p, 5, "%02X\r\n", (unsigned int)sum);
}
}