From 01b2940c65549cab78fb39bfdb30d2825210b287 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 17 May 2014 17:43:55 +0200 Subject: fix suspicious magic constant in ReedSolomon.c --- src/ReedSolomon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReedSolomon.cpp b/src/ReedSolomon.cpp index fc4c91e..0989e17 100644 --- a/src/ReedSolomon.cpp +++ b/src/ReedSolomon.cpp @@ -98,7 +98,7 @@ int ReedSolomon::encode(void* data, unsigned long size) if (reverse) { ret = decode_rs_char(rsData, input, NULL, 0); } else { - encode_rs_char(rsData, input, &input[188]); + encode_rs_char(rsData, input, &input[myK]); } return ret; -- cgit v1.2.3