Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-11-30 04:26:12 -0500
committerslewis2007-11-30 04:26:12 -0500
commit3fce3dbea7b0055284d3c74da74cbce5cd909e9d (patch)
treebc3d95ce3d250c8948afd74c3e65ca00961faba6 /framework/bundles/org.eclipse.ecf.identity/src
parenta9205c8839365365854e9430130226c7dbd57067 (diff)
downloadorg.eclipse.ecf-3fce3dbea7b0055284d3c74da74cbce5cd909e9d.tar.gz
org.eclipse.ecf-3fce3dbea7b0055284d3c74da74cbce5cd909e9d.tar.xz
org.eclipse.ecf-3fce3dbea7b0055284d3c74da74cbce5cd909e9d.zip
fix for target length bug
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.identity/src')
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/StringUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/StringUtils.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/StringUtils.java
index c32e08c6f..939c61d04 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/StringUtils.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/StringUtils.java
@@ -231,6 +231,6 @@ public final class StringUtils {
final int index = string.indexOf(target);
if (index == -1)
return string;
- return string.substring(0, index) + replace + replaceAll(string.substring(index + replace.length()), target, replace);
+ return string.substring(0, index) + replace + replaceAll(string.substring(index + target.length()), target, replace);
}
}

Back to the top