--- /Base64.java	2023-07-05 03:12:01.974027764 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Base64.java	2023-07-05 03:12:01.978027765 +0200
@@ -301,7 +301,7 @@
         int encodedIndex = 0;
         int dataIndex = 0;
         int i = 0;
-        int nextSeparatorIndex = CHUNK_SIZE;
+int nextSeparatorIndex = dataIndex;
         int chunksSoFar = 0;
 
         // log.debug("number of triplets = " + numberTriplets);
