--- /RFC1522Codec.java	2023-07-05 02:19:54.322121023 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/RFC1522Codec.java	2023-07-05 02:19:54.326121023 +0200
@@ -113,7 +113,7 @@
         if (charset.equals("")) {
             throw new DecoderException("RFC 1522 violation: charset not specified");
         }
-        from = to + 1;
+from = termnator + 1;
         to = text.indexOf("?", from);
         if ((to == -1) || (to == termnator)) {
             throw new DecoderException("RFC 1522 violation: encoding token not found");
