commit | 3a89ec78f9af2e940f20ce36ef740e7f6f75e573 | [log] [tgz] |
---|---|---|
author | akmhoque <akmhoque@gmail.com> | Fri Mar 15 19:56:05 2013 -0500 |
committer | akmhoque <akmhoque@gmail.com> | Fri Mar 15 19:56:05 2013 -0500 |
tree | df23f99068642797af3bec7477e61340b4cec7fd | |
parent | 419b1ad68900c86a75f57180f457e78daa3378e8 [diff] [blame] |
get_content_by_content_name
diff --git a/nlsr_sync.c b/nlsr_sync.c index 54eb4e3..b0058e7 100644 --- a/nlsr_sync.c +++ b/nlsr_sync.c
@@ -265,7 +265,7 @@ length_in=length; ccn_content_get_value(ptr_in, length_in, &pcobuf1, &ptr_in, &length_in); - *content_data = (unsigned char *) calloc(length_in, + *content_data = (unsigned char *) calloc(length_in+1, sizeof(char *)); memcpy (*content_data, ptr_in, length_in); ret=0;