From 9d22e46fa9dca50bd214db79d85f0141eda0a02e Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 22 Nov 2024 19:46:20 +0100 Subject: [PATCH] test/net/nanocoap_cli: fix buffer size for get_non --- tests/net/nanocoap_cli/nanocli_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/net/nanocoap_cli/nanocli_client.c b/tests/net/nanocoap_cli/nanocli_client.c index 3266c69055..2f8351a14e 100644 --- a/tests/net/nanocoap_cli/nanocli_client.c +++ b/tests/net/nanocoap_cli/nanocli_client.c @@ -327,7 +327,7 @@ int nanotest_client_get_non_cmd(int argc, char **argv) { int res; - uint8_t response[CONFIG_NANOCOAP_BLOCKSIZE_DEFAULT]; + uint8_t response[coap_szx2size(CONFIG_NANOCOAP_BLOCKSIZE_DEFAULT)]; if (argc < 2) { printf("usage: %s \n", argv[0]);