aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/mud/telnet/TelnetProtocolHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/mud/telnet/TelnetProtocolHandler.java')
-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;
}
}