summaryrefslogtreecommitdiff
path: root/libparse/clk_wharton.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2014-12-20 22:52:39 +0000
committerCy Schubert <cy@FreeBSD.org>2014-12-20 22:52:39 +0000
commitb5e14a1344528861a7016aa2c6b0f2e9630d1526 (patch)
treef04bed14f7e8aed5c0e9d2f7785175c7951036d3 /libparse/clk_wharton.c
parent2b45e011ca352ce509bc83ae148230aeee0c7e0d (diff)
Diffstat (limited to 'libparse/clk_wharton.c')
-rw-r--r--libparse/clk_wharton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libparse/clk_wharton.c b/libparse/clk_wharton.c
index 0a1ee0b03a47..55ab43a9b574 100644
--- a/libparse/clk_wharton.c
+++ b/libparse/clk_wharton.c
@@ -91,7 +91,7 @@ cvt_wharton_400a(
int i;
/* The given `size' includes a terminating null-character. */
- if (size != 16 || buffer[0] != STX || buffer[14] != ETX
+ if (size != 15 || buffer[0] != STX || buffer[14] != ETX
|| buffer[13] < '0' || buffer[13] > ('0' + 0xf))
return CVT_NONE;
for (i = 1; i < 13; i += 1)