Hmm.  Nice one.  :-)

 private byte[] getBytes( CharToByteConverter encoding) {
  ByteArrayOutputStream out = new ByteArrayOutputStream( value.length);
 
- byte[] buf = new byte[512];
+ byte[] buf = new byte[value.length*7];
  int buflen = encoding.convert( value, offset, count, buf, 0, buf.length);

Cheers,

 - Jim

----- Original Message ----- 
From: "Kaffe CVS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 04, 2002 4:52 AM
Subject: Kaffe CVS: kaffe dalibor


> 
> 
> CVSROOT: /cvs/kaffe
> Module name: kaffe
> Changes by: dalibor 02/04/04 04:52:51
> 
> Modified files:
> libraries/javalib/java/lang: String.java 
> 
> Log message:
> applied patch from mandrake
> 
> 

Reply via email to