diff --git a/src/main/java/org/jboss/netty/buffer/DynamicChannelBuffer.java b/src/main/java/org/jboss/netty/buffer/DynamicChannelBuffer.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/jboss/netty/buffer/DynamicChannelBuffer.java
+++ b/src/main/java/org/jboss/netty/buffer/DynamicChannelBuffer.java
@@ -275,7 +275,7 @@ public class DynamicChannelBuffer extends AbstractChannelBuffer {
         }
 
         ChannelBuffer newBuffer = factory().getBuffer(order(), newCapacity);
-        newBuffer.writeBytes(buffer, readerIndex(), readableBytes());
+        newBuffer.writeBytes(buffer, 0, writerIndex());
         buffer = newBuffer;
     }
 }
Fixed a bug where a dynamic buffer's readerIndex goes out of sync on expansion