--- a/servlib/bundling/BPQBlock.cc Mon Aug 15 18:14:59 2011 +0100
+++ b/servlib/bundling/BPQBlock.cc Mon Aug 15 18:28:00 2011 +0100
@@ -217,6 +217,11 @@
log_err_p(LOG, "BPQBlock::initialise: buf_len() < flen");
log_err_p(LOG, "BPQBlock::initialise: buf_len() = %lu",
block->writable_contents()->buf_len());
+
+ log_debug_p(LOG, "BPQBlock::initialise: reserving space in buffer");
+ block->writable_contents()->reserve(flen);
+ log_debug_p(LOG, "BPQBlock::initialise: new buf_len() = %lu",
+ block->writable_contents()->buf_len());
}
log_debug_p(LOG, "BPQBlock::initialise: extracting buf");