Include last input character in look ahead test

Bug and patch by brunt, ticket #43
This commit is contained in:
Robin Stuart 2016-11-26 08:44:59 +00:00
parent b003627908
commit 1155683be1

View File

@ -341,7 +341,7 @@ static int look_ahead_test(const unsigned char inputData[], const int sourcelen,
sp = position; sp = position;
do { do {
if (sp == (sourcelen - 1)) { if (sp == sourcelen) {
/* At the end of data ... step (k) */ /* At the end of data ... step (k) */
ascii_count = ceilf(ascii_count); ascii_count = ceilf(ascii_count);
b256_count = ceilf(b256_count); b256_count = ceilf(b256_count);