8027447: The wrong string buffer is specified for stderr in $EXEC
Reviewed-by: lagergren, sundar
This commit is contained in:
parent
93a855408a
commit
fe9288637c
@ -190,7 +190,7 @@ public final class ScriptingFunctions {
|
||||
char buffer[] = new char[1024];
|
||||
try (final InputStreamReader inputStream = new InputStreamReader(process.getErrorStream())) {
|
||||
for (int length; (length = inputStream.read(buffer, 0, buffer.length)) != -1; ) {
|
||||
outBuffer.append(buffer, 0, length);
|
||||
errBuffer.append(buffer, 0, length);
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
exception[1] = ex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user