commit | 1e2180f5977603a5d580ea02a897bb17f741e37f | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Mon Aug 12 13:32:50 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Mon Aug 12 13:32:50 2013 -0700 |
tree | ff2aa2f0e201f16ade87d02785ad2a551101d55d | |
parent | c978a7bcdcd9c801cbd3fbb09e6360ca6d8418a9 [diff] [blame] |
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(); }