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]);