diff --git a/classpath/java/io/File.java b/classpath/java/io/File.java index 96697c9af2..7e961ce138 100644 --- a/classpath/java/io/File.java +++ b/classpath/java/io/File.java @@ -159,7 +159,7 @@ public class File { } String[] result = new String[count]; - for (int i = count; i >= 0; --i) { + for (int i = count - 1; i >= 0; --i) { result[i] = list.value; list = list.next; }