Fixed a minor bug found by Olivier Gruber.


git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@447896 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 61c125a..9f374ee 100644
--- a/framework/src/main/java/org/apache/felix/framework/FindEntriesEnumeration.java
+++ b/framework/src/main/java/org/apache/felix/framework/FindEntriesEnumeration.java
@@ -49,7 +49,7 @@
             m_path = m_path.substring(1);
         }
         // Add a '/' to the end if not present.
-        if ((m_path.length() > 0) && (m_path.charAt(path.length() - 1) != '/'))
+        if ((m_path.length() > 0) && (m_path.charAt(m_path.length() - 1) != '/'))
         {
             m_path = m_path + "/";
         }