servlib/bundling/BPQBlock.cc
changeset 44 c4b3e13a1a90
parent 43 721d4a13bd0b
child 51 c6ca423f1eaf
--- 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");