mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Fix PTYOutputStream.write for off > 0
This commit is contained in:
parent
9f4cd256f3
commit
2ab1d46860
1 changed files with 2 additions and 2 deletions
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -46,7 +46,7 @@ public class PTYOutputStream extends OutputStream {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
byte[] tmpBuf = new byte[len];
|
byte[] tmpBuf = new byte[len];
|
||||||
System.arraycopy(b, off, tmpBuf, off, len);
|
System.arraycopy(b, off, tmpBuf, 0, len);
|
||||||
write0(master.getFD(), tmpBuf, len);
|
write0(master.getFD(), tmpBuf, len);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue