diff --git a/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java b/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java index 99faf14..722e8c5 100644 --- a/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java +++ b/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java @@ -584,7 +584,7 @@ public abstract class FieldMarshaller if (value == null) { raw = null; } else { - ByteBuffer bbuf = ByteBuffer.allocate(value.length*4); + ByteBuffer bbuf = ByteBuffer.allocate(value.length*2); bbuf.asShortBuffer().put(value); raw = bbuf.array(); }