From 804ca24aca634f85c09289bf2e0d448bdaf32ca9 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Mon, 25 Jul 2016 22:46:26 +0100 Subject: [PATCH] Correct bizarre use of isX12() Bug spotted by Milton Neal --- backend/dmatrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/dmatrix.c b/backend/dmatrix.c index 938e292d..c6473116 100644 --- a/backend/dmatrix.c +++ b/backend/dmatrix.c @@ -274,7 +274,7 @@ static int p_r_6_2_1(const unsigned char inputData[], const int position, const for (i = position; i < sourcelen; i++) { if (nonX12Position == 0) { - if (isX12(i) == 1) { + if (isX12(inputData[i]) != 1) { nonX12Position = i; } }