changeset 3195:0789f0934cbc

Fix RT-29250 - AIOOB exception from Java-based pisces dasher
author flar <James.Graham@oracle.com>
date Mon, 15 Apr 2013 03:13:42 -0700
parents df0237faee40
children 9ad01ddb19ab
files pisces/src/com/sun/openpisces/Dasher.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pisces/src/com/sun/openpisces/Dasher.java	Mon Apr 15 12:08:54 2013 +0200
+++ b/pisces/src/com/sun/openpisces/Dasher.java	Mon Apr 15 03:13:42 2013 -0700
@@ -154,7 +154,7 @@
             if (starting) {
                 firstSegmentsBuffer =
                     Helpers.widenArray(firstSegmentsBuffer,
-                                       firstSegidx, type - 2);
+                                       firstSegidx, type - 1);
                 firstSegmentsBuffer[firstSegidx++] = type;
                 System.arraycopy(pts, off, firstSegmentsBuffer, firstSegidx, type - 2);
                 firstSegidx += type - 2;