Slight bug in my last commit to fix Bundle.findEntries()...


git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@532847 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/FindEntriesEnumeration.java b/framework/src/main/java/org/apache/felix/framework/FindEntriesEnumeration.java
index 46c6356..a8a251b 100644
--- a/framework/src/main/java/org/apache/felix/framework/FindEntriesEnumeration.java
+++ b/framework/src/main/java/org/apache/felix/framework/FindEntriesEnumeration.java
@@ -105,7 +105,7 @@
                         ? entryName.length() - 1
                         : entryName.length();
                     int startIdx = (entryName.charAt(entryName.length() - 1) == '/')
-                        ? entryName.lastIndexOf('/', endIdx - 2) + 1
+                        ? entryName.lastIndexOf('/', endIdx - 1) + 1
                         : entryName.lastIndexOf('/', endIdx) + 1;
                     String lastElement = entryName.substring(startIdx, endIdx);