RTFM for Arrays.copyOfRange()

Change-Id: Ie0d7bd95207aafb269f23974b8e90fa0b50fdb86
This commit is contained in:
Tor Lillqvist
2012-09-05 16:09:04 +03:00
parent 2c619267d6
commit c0bc0003ee

View File

@@ -218,7 +218,7 @@ public class Bootstrap extends NativeActivity
while (argv.length > 0 && while (argv.length > 0 &&
argv[0].matches("[A-Z_]+=.*")) { argv[0].matches("[A-Z_]+=.*")) {
putenv(argv[0]); 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 // argv[0] will be replaced by android_main() in lo-bootstrap.c by the