Correct range of loop for size of input data.

This commit is contained in:
Jonathan Naylor 2016-09-28 09:26:23 +01:00 committed by GitHub
parent 2c815f0a2f
commit 0306659259

View file

@ -114,7 +114,7 @@ bool CRS241213::decode(unsigned char* data)
S[i] = HB[0];
}
for (j = 1; j <= 62; j++) {
for (j = 1; j <= 23; j++) { // XXX was 62
for (i = 0; i <= nroots - 1; i++) {
if (S[i] == 0) {
S[i] = HB[j];