Skip to content

Commit 9d22e46

Browse files
committed
test/net/nanocoap_cli: fix buffer size for get_non
1 parent 2a6b8a3 commit 9d22e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/net/nanocoap_cli/nanocli_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ int nanotest_client_get_non_cmd(int argc, char **argv)
327327
{
328328
int res;
329329

330-
uint8_t response[CONFIG_NANOCOAP_BLOCKSIZE_DEFAULT];
330+
uint8_t response[coap_szx2size(CONFIG_NANOCOAP_BLOCKSIZE_DEFAULT)];
331331

332332
if (argc < 2) {
333333
printf("usage: %s <url>\n", argv[0]);

0 commit comments

Comments
 (0)