diff --git a/pact/pact-common/src/main/java/eu/stratosphere/pact/common/type/base/PactString.java b/pact/pact-common/src/main/java/eu/stratosphere/pact/common/type/base/PactString.java index c550a339767ddcdd0bfc0cd98cc5d9868f2b5182..f4793ae2026240210c35c5318a0161be51c6cda5 100644 --- a/pact/pact-common/src/main/java/eu/stratosphere/pact/common/type/base/PactString.java +++ b/pact/pact-common/src/main/java/eu/stratosphere/pact/common/type/base/PactString.java @@ -457,7 +457,7 @@ public class PactString implements Key, NormalizableKey, CharSequence, CopyableV public Appendable append(CharSequence csq, int start, int end) { final int otherLen = end - start; grow(this.len + otherLen); - for (int pos = start; pos < len; pos++) + for (int pos = start; pos < end; pos++) this.value[this.len + pos] = csq.charAt(pos); this.len += otherLen; return this;