You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2017/04/21 19:36:07 UTC

ant git commit: fix off by one error found by Matt Benson

Repository: ant
Updated Branches:
  refs/heads/1.9.x 534747598 -> e293c7a29


fix off by one error found by Matt Benson


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/e293c7a2
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/e293c7a2
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/e293c7a2

Branch: refs/heads/1.9.x
Commit: e293c7a29c9dea995dea2868b9cb2f53b5b304e0
Parents: 5347475
Author: Stefan Bodewig <bo...@apache.org>
Authored: Fri Apr 21 21:35:46 2017 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Fri Apr 21 21:35:46 2017 +0200

----------------------------------------------------------------------
 src/main/org/apache/tools/ant/helper/ProjectHelper2.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/e293c7a2/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/helper/ProjectHelper2.java b/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
index 67e1dec..2e9c725 100644
--- a/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
+++ b/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
@@ -256,7 +256,7 @@ public class ProjectHelper2 extends ProjectHelper {
                     zf = new ZipFile(org.apache.tools.ant.launch.Locator
                                      .fromJarURI(uri), "UTF-8");
                     inputStream =
-                        zf.getInputStream(zf.getEntry(uri.substring(pling + 1)));
+                        zf.getInputStream(zf.getEntry(uri.substring(pling + 2)));
                 } else {
                     URLConnection conn = url.openConnection();
                     conn.setUseCaches(false);