From c0bc0003eed4938071d051ffeb689dbbfd1ca02a Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 5 Sep 2012 16:09:04 +0300 Subject: [PATCH] RTFM for Arrays.copyOfRange() Change-Id: Ie0d7bd95207aafb269f23974b8e90fa0b50fdb86 --- android/Bootstrap/src/org/libreoffice/android/Bootstrap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java index 116c6c476100..8c635d479408 100644 --- a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java +++ b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java @@ -218,7 +218,7 @@ public class Bootstrap extends NativeActivity while (argv.length > 0 && argv[0].matches("[A-Z_]+=.*")) { putenv(argv[0]); - argv = Arrays.copyOfRange(argv, 1, argv.length-1); + argv = Arrays.copyOfRange(argv, 1, argv.length); } // argv[0] will be replaced by android_main() in lo-bootstrap.c by the