commit | caff65e419f3e050438a098a0f440f19c7cf3200 | [log] [tgz] |
---|---|---|
author | Greg Watson <g.watson@computer.org> | Thu Mar 30 01:05:56 2006 +0000 |
committer | Greg Watson <g.watson@computer.org> | Thu Mar 30 01:05:56 2006 +0000 |
tree | 09f139e106b2db0e74ecfbc4914329104afacb55 | |
parent | ac0a83dfb1e913e80e810b3075d9d5ee8f2e221d [diff] |
fix string length bug
diff --git a/core/org.eclipse.ptp.core/src/org/eclipse/ptp/core/proxy/AbstractProxyClient.java b/core/org.eclipse.ptp.core/src/org/eclipse/ptp/core/proxy/AbstractProxyClient.java index 406fa33..c3741bf 100644 --- a/core/org.eclipse.ptp.core/src/org/eclipse/ptp/core/proxy/AbstractProxyClient.java +++ b/core/org.eclipse.ptp.core/src/org/eclipse/ptp/core/proxy/AbstractProxyClient.java
@@ -71,7 +71,7 @@ return "1:00"; byte[] b = str.getBytes(); - String res = str.length()*2+1 + ":"; + String res = Integer.toHexString(str.length()+1) + ":"; for (int i = 0; i < b.length; i++) { if (b[i] < 10) res += "0";