aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/mud
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-06-24 04:50:17 +0000
committerKenny Root <kenny@the-b.org>2009-06-24 04:50:17 +0000
commit77440a7c3f4b9b2aa4918d290e0b2f37370a131c (patch)
treefd72b963e1f57792be617f1767b3cdab84e19555 /src/de/mud
parentbb34d2e6e0d8df6544fe69f5ad41899368781f1a (diff)
downloadconnectbot-77440a7c3f4b9b2aa4918d290e0b2f37370a131c.tar.gz
connectbot-77440a7c3f4b9b2aa4918d290e0b2f37370a131c.tar.bz2
connectbot-77440a7c3f4b9b2aa4918d290e0b2f37370a131c.zip
Bugfix for Telnet to work with new CharsetDecoder
git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@328 df292f66-193f-0410-a5fc-6d59da041ff2
Diffstat (limited to 'src/de/mud')
-rw-r--r--src/de/mud/telnet/TelnetProtocolHandler.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/de/mud/telnet/TelnetProtocolHandler.java b/src/de/mud/telnet/TelnetProtocolHandler.java
index 3d24d12..fd4d034 100644
--- a/src/de/mud/telnet/TelnetProtocolHandler.java
+++ b/src/de/mud/telnet/TelnetProtocolHandler.java
@@ -638,11 +638,10 @@ public abstract class TelnetProtocolHandler {
}
public void inputfeed(byte[] b, int offset, int len) {
- byte[] xb = new byte[tempbuf.length+offset+len];
+ byte[] xb = new byte[tempbuf.length+len];
- System.arraycopy(b,0,xb,0,offset);
- System.arraycopy(tempbuf,0,xb,offset,tempbuf.length);
- System.arraycopy(b,offset,xb,offset+tempbuf.length,len);
+ System.arraycopy(tempbuf,0,xb,0,tempbuf.length);
+ System.arraycopy(b,offset,xb,tempbuf.length,len);
tempbuf = xb;
}
}