Skip to content

Commit 4736b35

Browse files
committed
Fixed array offset in UtString.concat()
1 parent 734868e commit 4736b35

File tree

1 file changed

+1
-1
lines changed
  • utbot-framework/src/main/java/org/utbot/engine/overrides/strings

1 file changed

+1
-1
lines changed

utbot-framework/src/main/java/org/utbot/engine/overrides/strings/UtString.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ public String concat(String str) {
756756
}
757757
char[] newValue = new char[length + str.length()];
758758
UtArrayMock.arraycopy(value, 0, newValue, 0, length);
759-
UtArrayMock.arraycopy(otherVal, 0, newValue, length + 1, str.length());
759+
UtArrayMock.arraycopy(otherVal, 0, newValue, length, str.length());
760760
return new String(newValue);
761761
}
762762

0 commit comments

Comments
 (0)