write_data_to_repo
diff --git a/nlsr_sync.c b/nlsr_sync.c
index 01b8795..c1263b4 100644
--- a/nlsr_sync.c
+++ b/nlsr_sync.c
@@ -671,7 +671,7 @@
 
 	blockread = 0;
 
-	blockread=strlen(data);
+	blockread=strlen(data)+1;
 
 	if (blockread > 0) {
 		res = ccn_seqw_write(w, data, blockread);