2003/06/09 03:13:17
[org.ibex.core.git] / src / org / xwt / util / Vec.java
index f40d345..be5c2af 100644 (file)
@@ -42,7 +42,7 @@ public final class Vec implements Serializable {
     }
     
     public void addElement(Object o) {
-        if (size >= store.length) grow();
+        if (size >= store.length - 1) grow();
         store[size++] = o;
     }