summaryrefslogtreecommitdiff
path: root/crc24q.c
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@users.berlios.de>2010-05-09 21:04:23 -0700
committerChris Kuethe <ckuethe@users.berlios.de>2010-05-09 21:04:23 -0700
commit0dd4481787d070a16dc6c630b5688f014f060724 (patch)
tree4fe5efcce63ab54a255f54eb298ddc7a531d50b1 /crc24q.c
parent73aeb00c19cda3094fcda05ad4b69a96b3f97e8d (diff)
downloadgpsd-0dd4481787d070a16dc6c630b5688f014f060724.tar.gz
fix read past end of array. from cppcheck
Diffstat (limited to 'crc24q.c')
-rw-r--r--crc24q.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crc24q.c b/crc24q.c
index 8f515c49..7d65db47 100644
--- a/crc24q.c
+++ b/crc24q.c
@@ -37,7 +37,7 @@
#include <stdio.h>
#include <stdlib.h>
-unsigned table[25];
+unsigned table[256];
#define CRCSEED 0 /* could be NZ to detect leading zeros */
#define CRCPOLY 0x1864CFB /* encodes all info about the polynomial */