This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: PR 30600
- From: Tom Tromey <tromey at redhat dot com>
- To: GCJ-patches <java-patches at gcc dot gnu dot org>
- Date: 29 Jan 2007 17:32:15 -0700
- Subject: Patch: FYI: PR 30600
- Reply-to: tromey at redhat dot com
I'm checking this in.
I'm also going to put it on the RH 4.1 branch.
This is the patch from PR 30600, which worked for me.
Tom
Index: ChangeLog
from Kaloian Doganov <kaloian@doganov.org>
PR libgcj/30600:
* gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
'limit'.
Index: gnu/gcj/convert/BytesToCharsetAdaptor.java
===================================================================
--- gnu/gcj/convert/BytesToCharsetAdaptor.java (revision 121314)
+++ gnu/gcj/convert/BytesToCharsetAdaptor.java (working copy)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005 Free Software Foundation
+/* Copyright (C) 2005, 2007 Free Software Foundation
This file is part of libgcj.
@@ -71,7 +71,7 @@
{
if (inBuf == null || ! inBuf.hasArray() || inBuf.array() != inbuffer)
inBuf = ByteBuffer.wrap(inbuffer);
- inBuf.limit(inpos + inlength);
+ inBuf.limit(inlength);
inBuf.position(inpos);
CharBuffer outBuf = CharBuffer.wrap(outbuffer, outpos, count);