From 75816e7750892516273daf32a9b3db1f82c86b1d Mon Sep 17 00:00:00 2001 From: "G.K.MacGregor" Date: Thu, 22 Sep 2022 21:28:29 +0100 Subject: [PATCH] Fix reserved data detection in DRCS character triplet --- x26triplets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x26triplets.cpp b/x26triplets.cpp index c473ac3..7493632 100644 --- a/x26triplets.cpp +++ b/x26triplets.cpp @@ -174,8 +174,8 @@ void X26TripletList::updateInternalData() triplet->m_reservedData = true; break; case 0x2d: // DRCS character - if (triplet->m_data >= 48) - // Should really be an error + if ((triplet->m_data & 0x3f) >= 48) + // Should really be an error? triplet->m_reservedData = true; }