aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ReedSolomon.cpp2
1 files changed, 1 insertions, 1 deletions
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;