Skip to content

Commit

Permalink
test/net/nanocoap_cli: fix buffer size for get_non
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Nov 22, 2024
1 parent 2a6b8a3 commit 9d22e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/net/nanocoap_cli/nanocli_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <url>\n", argv[0]);
Expand Down

0 comments on commit 9d22e46

Please sign in to comment.