From 2828987879a62a861500d4b1d5649575a07e0b78 Mon Sep 17 00:00:00 2001 From: Kaloian Doganov Date: Tue, 30 Jan 2007 02:46:54 +0000 Subject: re PR libgcj/30600 (gnu.gcj.convert.BytesToCharsetAdaptor calculates bad argument for java.nio.Buffer.limit(int)) 2007-01-29 Kaloian Doganov PR libgcj/30600: * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to 'limit'. From-SVN: r121329 --- libjava/gnu/gcj/convert/BytesToCharsetAdaptor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libjava/gnu') diff --git a/libjava/gnu/gcj/convert/BytesToCharsetAdaptor.java b/libjava/gnu/gcj/convert/BytesToCharsetAdaptor.java index 78ba848..4b43d7b 100644 --- a/libjava/gnu/gcj/convert/BytesToCharsetAdaptor.java +++ b/libjava/gnu/gcj/convert/BytesToCharsetAdaptor.java @@ -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 @@ public class BytesToCharsetAdaptor extends BytesToUnicode { 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); -- cgit v1.1