1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

Bug 314275 fixed array out of bound exception

This commit is contained in:
Alena Laskavaia 2010-05-26 00:21:57 +00:00
parent 646182c984
commit 27808358a3

View file

@ -61,7 +61,7 @@ class SpawnerInputStream extends InputStream {
} else if (len == 0) {
return 0;
}
byte[] tmpBuf = off > 0 ? new byte[len - off] : buf;
byte[] tmpBuf = off > 0 ? new byte[len] : buf;
len = read0(fd, tmpBuf, len);
if (len <= 0)