From 27808358a3b3621216171a46d4624b42507df959 Mon Sep 17 00:00:00 2001 From: Alena Laskavaia Date: Wed, 26 May 2010 00:21:57 +0000 Subject: [PATCH] Bug 314275 fixed array out of bound exception --- .../utils/org/eclipse/cdt/utils/spawner/SpawnerInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/spawner/SpawnerInputStream.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/spawner/SpawnerInputStream.java index 408b50cd6bc..f77f91dfc68 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/spawner/SpawnerInputStream.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/spawner/SpawnerInputStream.java @@ -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)