Fix bug: need to use resize, not reserve.
diff --git a/ndn-cpp/util/dynamic-uchar-vector.cpp b/ndn-cpp/util/dynamic-uchar-vector.cpp
index d346494..b7957c5 100644
--- a/ndn-cpp/util/dynamic-uchar-vector.cpp
+++ b/ndn-cpp/util/dynamic-uchar-vector.cpp
@@ -24,7 +24,7 @@
     // We don't expect this to ever happen. The caller didn't pass the array from this object.
     return 0;
   
-  thisObject->vector_->reserve(length);
+  thisObject->vector_->resize(length);
   return &thisObject->vector_->front();
 }
 
diff --git a/ndn-cpp/util/dynamic-uchar-vector.hpp b/ndn-cpp/util/dynamic-uchar-vector.hpp
index f372aff..4d7caa8 100644
--- a/ndn-cpp/util/dynamic-uchar-vector.hpp
+++ b/ndn-cpp/util/dynamic-uchar-vector.hpp
@@ -16,7 +16,7 @@
  * A DynamicUCharVector extends ndn_DynamicUCharArray to hold a shared_ptr<vector<unsigned char> > for use with
  * C functions which need an ndn_DynamicUCharArray.
  */
-class DynamicUCharVector : ndn_DynamicUCharArray {
+class DynamicUCharVector : public ndn_DynamicUCharArray {
 public:
   /**
    * Create a new DynamicUCharVector with an initial length.
@@ -32,7 +32,7 @@
   
 private:
   /**
-   * Implement the static realloc function using vector reserve.
+   * Implement the static realloc function using vector resize.
    * @param self A pointer to this object.
    * @param array Should be the front of the vector.
    * @param length The new length for the vector.