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;