diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-01-08 21:19:25 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-01-08 21:19:25 +0000 |
| commit | 28707d3de4970c536ae2a9acccf58ac2c06a78d0 (patch) | |
| tree | 8cc525a2e49d49866d2d405814bef7b605f931a2 /qpid/java | |
| parent | feacd5dbae8460ef4bdcf0ccd2c6aa717aa0d1a9 (diff) | |
| download | qpid-python-28707d3de4970c536ae2a9acccf58ac2c06a78d0.tar.gz | |
There is mistake in a commit made for QPID-1830 in rev 891805
Due to the mistake a get operation could reference an index out of bounds or it could print fewer items than what is required.
This commit corrects that mistake.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@897323 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
| -rw-r--r-- | qpid/java/common/src/main/java/org/apache/qpid/transport/util/Functions.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/java/common/src/main/java/org/apache/qpid/transport/util/Functions.java b/qpid/java/common/src/main/java/org/apache/qpid/transport/util/Functions.java index 9f1c0ca9eb..5761228642 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/transport/util/Functions.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/transport/util/Functions.java @@ -65,9 +65,9 @@ public class Functions StringBuilder str = new StringBuilder(); str.append('"'); - for (int i = 0; i < min(buf.remaining(), limit); i++) + for (int i = start; i < min(buf.limit(), limit); i++) { - byte c = buf.get(start + i); + byte c = buf.get(i); if (c > 31 && c < 127 && c != '\\') { |
