Skip to content

Commit

Permalink
Correct range of loop for size of input data.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx authored Sep 28, 2016
1 parent 2c815f0 commit 0306659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RS241213.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 0306659

Please sign in to comment.