Fix bug in constructor: need to call ndn_BinaryXmlEncoder_init.
diff --git a/ndn-cpp/encoding/binary-xml-encoder.hpp b/ndn-cpp/encoding/binary-xml-encoder.hpp
index fc5d451..e3ea15e 100644
--- a/ndn-cpp/encoding/binary-xml-encoder.hpp
+++ b/ndn-cpp/encoding/binary-xml-encoder.hpp
@@ -22,8 +22,9 @@
    * Initialize the base ndn_BinaryXmlEncoder struct with an initial array of 16 bytes.  Use simpleRealloc.
    */
   BinaryXmlEncoder() 
-  : output_(16)
+  : output_(1)
   {
+    ndn_BinaryXmlEncoder_init(this, &output_);
   }
   
   /**