From 7259028bd06ea5bd1125fe3bdaf4aac26656c7f2 Mon Sep 17 00:00:00 2001 From: John Jones Date: Wed, 4 Oct 2017 06:38:38 -0500 Subject: [PATCH] small fix to test --- test/core/test_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/core/test_api.h b/test/core/test_api.h index 74cab25..8135d5d 100644 --- a/test/core/test_api.h +++ b/test/core/test_api.h @@ -193,7 +193,7 @@ int test_core_api_object_cat_binary() { for(int i = 0; i < 256; i++) bytes[i] = i; char* filename = "test1.txt"; - create_file(filename, bytes, strlen((char*)bytes)); + create_file(filename, bytes, 256); struct HashtableNode* node; size_t bytes_written; struct IpfsNode *local_node = NULL;