Patch: FYI: PR 30600
Tom Tromey
tromey@redhat.com
Tue Jan 30 02:42:00 GMT 2007
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);
More information about the Java-patches
mailing list