From: Luke Cycon <lcycon@gmail.com>
Date: Fri, 9 Sep 2011 13:19:39 +0200
Subject: fix compile errors caused by tomcat API update

---
 .../remoting/transport/coyote/OutputBuffer.java    |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/org/jboss/remoting/transport/coyote/OutputBuffer.java b/src/main/org/jboss/remoting/transport/coyote/OutputBuffer.java
index b56999b..0feb63c 100644
--- a/src/main/org/jboss/remoting/transport/coyote/OutputBuffer.java
+++ b/src/main/org/jboss/remoting/transport/coyote/OutputBuffer.java
@@ -607,8 +607,9 @@ public class OutputBuffer extends Writer
 
       // The following has been updated to conform to jbossweb 2.1.
       cb.setChars(c, off, len);
-      while (cb.getLength() > 0) { 
-          conv.convert(cb, bb);
+      while (cb.getLength() > 0) {
+	  conv.setByteChunk(bb);
+	  conv.convert(cb.getChars(), 0, cb.getLength());
           if (cb.getLength() > 0) {
               bb.flushBuffer();
           }
-- 
