Make ndn_DynamicUCharArray realloc take a self pointer.
diff --git a/ndn-cpp/c/util/dynamic-uchar-array.c b/ndn-cpp/c/util/dynamic-uchar-array.c
index 208544f..d961e7f 100644
--- a/ndn-cpp/c/util/dynamic-uchar-array.c
+++ b/ndn-cpp/c/util/dynamic-uchar-array.c
@@ -16,7 +16,7 @@
// The needed length is much greater, so use it.
newLength = length;
- unsigned char *newArray = (*self->realloc)(self->array, newLength);
+ unsigned char *newArray = (*self->realloc)(self, self->array, newLength);
if (!newArray)
return NDN_ERROR_DynamicUCharArray_realloc_failed;