Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2014-05-16 10:10:02 -0400
committerUwe Stieber2014-05-16 10:10:02 -0400
commite71c3ab5f85104b1c272aa46dda9363b0256c608 (patch)
treea025de77a8fd1d95aa55b78e9d795a058e167bb2
parent745a0b0bba3a1d89283d25ca635e890b09943d7f (diff)
downloadorg.eclipse.tcf-e71c3ab5f85104b1c272aa46dda9363b0256c608.tar.gz
org.eclipse.tcf-e71c3ab5f85104b1c272aa46dda9363b0256c608.tar.xz
org.eclipse.tcf-e71c3ab5f85104b1c272aa46dda9363b0256c608.zip
Target Explorer: Bug 434972 - [terminal] ArrayIndexOutOfBoundsException when pasting text with CRLF
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/streams/InputStreamMonitor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/streams/InputStreamMonitor.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/streams/InputStreamMonitor.java
index f3ddd80cf..21e5c20fa 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/streams/InputStreamMonitor.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/streams/InputStreamMonitor.java
@@ -292,7 +292,7 @@ public class InputStreamMonitor extends OutputStream implements IDisposable {
byte[] processedBytes = onWriteContentToStream(b, off, len);
// If the returned array is not the original one, adjust offset and length
if (processedBytes != b) {
- off = 0; len = processedBytes.length;
+ off = 0; len = processedBytes.length; b = processedBytes;
}
// Get the content from the byte buffer specified by offset and length

Back to the top