From 3ef3c98a1d354ed191fe5d4a979884f3b32326ea Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 31 Jul 2024 00:49:13 +0200 Subject: [PATCH] cosmetic --- client/src/cmddata.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/cmddata.c b/client/src/cmddata.c index 167d80b90..060df0b5a 100644 --- a/client/src/cmddata.c +++ b/client/src/cmddata.c @@ -3386,7 +3386,7 @@ static int CmdAtrLookup(const char *Cmd) { arg_param_end }; CLIExecWithReturn(ctx, Cmd, argtable, false); - uint8_t data[128 + 1]; + uint8_t data[129]; int dlen = sizeof(data) - 1; // CLIGetStrWithReturn does not guarantee string to be null-terminated CLIGetStrWithReturn(ctx, 1, data, &dlen); @@ -3574,11 +3574,11 @@ static int CmdBinaryMap(const char *Cmd) { }; CLIExecWithReturn(ctx, Cmd, argtable, false); - uint8_t hex[5 + 1]; + uint8_t hex[6]; int hlen = sizeof(hex) - 1; // CLIGetStrWithReturn does not guarantee string to be null-terminated CLIGetStrWithReturn(ctx, 1, hex, &hlen); - uint8_t template[40 + 1]; + uint8_t template[41]; int tlen = sizeof(template) - 1; // CLIGetStrWithReturn does not guarantee string to be null-terminated CLIGetStrWithReturn(ctx, 2, template, &tlen); CLIParserFree(ctx);