From b84d28e6e40e1fdf3b51181d35511cdefc0420c5 Mon Sep 17 00:00:00 2001 From: Doug Felt Date: Fri, 23 Jan 2004 20:33:39 +0000 Subject: [PATCH] ICU-2732 didn't resize large enough X-SVN-Rev: 14397 --- icu4j/src/com/ibm/icu/util/ByteArrayWrapper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icu4j/src/com/ibm/icu/util/ByteArrayWrapper.java b/icu4j/src/com/ibm/icu/util/ByteArrayWrapper.java index a867e000f8..cf738e7812 100644 --- a/icu4j/src/com/ibm/icu/util/ByteArrayWrapper.java +++ b/icu4j/src/com/ibm/icu/util/ByteArrayWrapper.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/util/ByteArrayWrapper.java,v $ - * $Date: 2003/12/01 21:17:31 $ - * $Revision: 1.3 $ + * $Date: 2004/01/23 20:33:39 $ + * $Revision: 1.4 $ * ******************************************************************************* */ @@ -98,7 +98,7 @@ public class ByteArrayWrapper public final void append(byte[] src, int start, int limit) { int len = limit - start; - ensureCapacity(len); + ensureCapacity(size + len); copyBytes(src, start, bytes, size, len); size += len; }