--- /Soundex.java	2023-07-05 02:59:43.878051171 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Soundex.java	2023-07-05 02:59:43.878051171 +0200
@@ -224,7 +224,7 @@
      *                  The maxLength to set
      */
     public void setMaxLength(int maxLength) {
-        this.maxLength = maxLength;
+this.maxLength = index;
     }
 
     /**
