Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2014-08-27 09:38:26 -0400
committerAnton Leherbauer2014-08-27 09:38:26 -0400
commita346f1841f6e6050de2eedba5e89814d5d6a5e34 (patch)
tree3ab9b72c7553dac5cf37c68d22b0216f5ccf56bf
parent2c2c2fed6b760ed00efb2561cef0f2d18a2e0825 (diff)
downloadorg.eclipse.cdt-cdt_8_4.tar.gz
org.eclipse.cdt-cdt_8_4.tar.xz
org.eclipse.cdt-cdt_8_4.zip
Fix PTYOutputStream.write for off > 0cdt_8_4
-rw-r--r--core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/pty/PTYOutputStream.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/pty/PTYOutputStream.java b/core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/pty/PTYOutputStream.java
index f6096e5a44..8255597c43 100644
--- a/core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/pty/PTYOutputStream.java
+++ b/core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/pty/PTYOutputStream.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 QNX Software Systems and others.
+ * Copyright (c) 2000, 2014 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -46,7 +46,7 @@ public class PTYOutputStream extends OutputStream {
return;
}
byte[] tmpBuf = new byte[len];
- System.arraycopy(b, off, tmpBuf, off, len);
+ System.arraycopy(b, off, tmpBuf, 0, len);
write0(master.getFD(), tmpBuf, len);
}
/**

Back to the top