1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

test/net/nanocoap_cli: fix buffer size for get_non

This commit is contained in:
Benjamin Valentin 2024-11-22 19:46:20 +01:00
parent 2a6b8a3fed
commit 9d22e46fa9

View File

@ -327,7 +327,7 @@ int nanotest_client_get_non_cmd(int argc, char **argv)
{ {
int res; int res;
uint8_t response[CONFIG_NANOCOAP_BLOCKSIZE_DEFAULT]; uint8_t response[coap_szx2size(CONFIG_NANOCOAP_BLOCKSIZE_DEFAULT)];
if (argc < 2) { if (argc < 2) {
printf("usage: %s <url>\n", argv[0]); printf("usage: %s <url>\n", argv[0]);