8027447: The wrong string buffer is specified for stderr in $EXEC

Reviewed-by: lagergren, sundar
This commit is contained in:
James Laskey 2013-10-29 14:22:44 -03:00 committed by Jim Laskey
parent 93a855408a
commit fe9288637c

View File

@ -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;