From 8af339a3c559f7bb9a49c8ed781913e991ea4efa Mon Sep 17 00:00:00 2001 From: Alvaro Denis Date: Wed, 5 Jun 2019 21:08:07 -0400 Subject: [PATCH] fix in TestAddressString ref #34 --- lib/cgo/tests/check_cipher.address.common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cgo/tests/check_cipher.address.common.c b/lib/cgo/tests/check_cipher.address.common.c index 96b7d6684..8534b36e8 100644 --- a/lib/cgo/tests/check_cipher.address.common.c +++ b/lib/cgo/tests/check_cipher.address.common.c @@ -52,7 +52,7 @@ START_TEST(TestAddressString) ck_assert(err == SKY_OK); err = SKY_cipher_AddressFromPubKey(&pk, &addr); ck_assert(err == SKY_OK); - GoString_ tmpstr = {str.p, str.n}; + GoString_ tmpstr = {str.p, sizeof(buff)}; err = SKY_cipher_Address_String(&addr, &tmpstr); ck_assert(err == SKY_OK);