aboutsummaryrefslogtreecommitdiffstats
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/connectbot/service/TerminalBridge.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/connectbot/service/TerminalBridge.java b/src/org/connectbot/service/TerminalBridge.java
index 98c75f1..e0d48a7 100644
--- a/src/org/connectbot/service/TerminalBridge.java
+++ b/src/org/connectbot/service/TerminalBridge.java
@@ -255,16 +255,16 @@ public class TerminalBridge implements VDUDisplay, OnKeyListener, InteractiveCal
}
while (bb.position() < n) {
- bb = ByteBuffer.wrap(b, curpos, cr.length());
+ ByteBuffer replacebb = ByteBuffer.wrap(b, curpos, cr.length());
cb.clear();
- replacer.decode(bb, cb, true);
+ replacer.decode(replacebb, cb, true);
((vt320) buffer).putString(cb.array(), 0, cb.position());
curpos += cr.length();
- bb = ByteBuffer.wrap(b, curpos, n - curpos);
+ bb.position(curpos);
cb.clear();
cr = cd.decode(bb, cb, true);