diff options
author | Chris Kuethe <ckuethe@users.berlios.de> | 2010-05-09 21:04:23 -0700 |
---|---|---|
committer | Chris Kuethe <ckuethe@users.berlios.de> | 2010-05-09 21:04:23 -0700 |
commit | 0dd4481787d070a16dc6c630b5688f014f060724 (patch) | |
tree | 4fe5efcce63ab54a255f54eb298ddc7a531d50b1 /crc24q.c | |
parent | 73aeb00c19cda3094fcda05ad4b69a96b3f97e8d (diff) | |
download | gpsd-0dd4481787d070a16dc6c630b5688f014f060724.tar.gz |
fix read past end of array. from cppcheck
Diffstat (limited to 'crc24q.c')
-rw-r--r-- | crc24q.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |