Return-Path: Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: (qmail 33832 invoked from network); 28 Sep 2006 07:11:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 07:11:53 -0000 Received: (qmail 8303 invoked by uid 500); 28 Sep 2006 07:11:52 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 8285 invoked by uid 500); 28 Sep 2006 07:11:52 -0000 Mailing-List: contact java-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-commits@lucene.apache.org Received: (qmail 8269 invoked by uid 99); 28 Sep 2006 07:11:52 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2006 00:11:52 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received: from [140.211.166.113] ([140.211.166.113:61572] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 04/39-05478-5B57B154 for ; Thu, 28 Sep 2006 00:11:51 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 8028A1A981A; Thu, 28 Sep 2006 00:11:40 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r450725 - /lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java Date: Thu, 28 Sep 2006 07:11:40 -0000 To: java-commits@lucene.apache.org From: whoschek@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060928071140.8028A1A981A@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: whoschek Date: Thu Sep 28 00:11:39 2006 New Revision: 450725 URL: http://svn.apache.org/viewvc?view=rev&rev=450725 Log: fixed array length bug Modified: lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java Modified: lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java?view=diff&rev=450725&r1=450724&r2=450725 ============================================================================== --- lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java (original) +++ lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java Thu Sep 28 00:11:39 2006 @@ -297,7 +297,7 @@ len += n; } - return new String(output, 0, output.length); + return new String(output, 0, len); } finally { if (input != null) input.close(); }