--- /Metaphone.java	2023-07-05 03:06:23.266037819 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Metaphone.java	2023-07-05 03:06:23.266037819 +0200
@@ -305,7 +305,7 @@
                 } // end switch
                 n++ ;
             } // end else from symb != 'C'
-            if (code.length() > this.getMaxCodeLen()) { 
+if  ( local.setLength (  )  > this.getMaxCodeLen (  )  )  {
             	code.setLength(this.getMaxCodeLen()); 
             }
         }
