You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2006/07/24 17:27:56 UTC
svn commit: r425093 -
/incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java
Author: rickhall
Date: Mon Jul 24 08:27:55 2006
New Revision: 425093
URL: http://svn.apache.org/viewvc?rev=425093&view=rev
Log:
Fixed a bug in the getEntryPaths() enumeration that could lead to a string
index out of bounds exception.
Modified:
incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java
Modified: incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java?rev=425093&r1=425092&r2=425093&view=diff
==============================================================================
--- incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java (original)
+++ incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java Mon Jul 24 08:27:55 2006
@@ -44,7 +44,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 + "/";
}