Skip to content

Commit eee327c

Browse files
committed
fix: Correct array copy length in setPageRanges method to include all ranges
1 parent d6ed112 commit eee327c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/org/openqa/selenium/print/PrintOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void setPageRanges(String firstRange, String... ranges) {
7070

7171
this.pageRanges[0] = firstRange;
7272

73-
if (ranges.length > 0) System.arraycopy(ranges, 0, this.pageRanges, 1, ranges.length - 1);
73+
if (ranges.length > 0) System.arraycopy(ranges, 0, this.pageRanges, 1, ranges.length);
7474
}
7575

7676
public void setPageRanges(List<String> ranges) {

0 commit comments

Comments
 (0)