Fix debugcmd parameter processing

The debugcmd parameter processing didn't actually allow the maximum number
of parameters to be passed to the function. The detailed help text was
never printed and most of them were only duplicates of the short
description.
This commit is contained in:
Markus Makela 2016-11-08 13:10:12 +02:00
parent 65886dc386
commit 084aacb11c
3 changed files with 583 additions and 501 deletions

View File

@ -108,6 +108,7 @@ static struct option long_options[] =
#define MAXADMIN_DEFAULT_HOST "localhost"
#define MAXADMIN_DEFAULT_PORT "6603"
#define MAXADMIN_DEFAULT_USER "admin"
#define MAXADMIN_BUFFER_SIZE 2048
/**
* The main for the maxadmin client
@ -125,7 +126,7 @@ main(int argc, char **argv)
History *hist;
HistEvent ev;
#else
char buf[1024];
char buf[MAXADMIN_BUFFER_SIZE];
#endif
char *hostname = NULL;
char *port = NULL;

View File

@ -55,7 +55,7 @@ typedef struct cli_instance
* The CLI_SESSION structure. As CLI_SESSION is created for each user that logs into
* the DEBUG CLI.
*/
enum { CMDBUFLEN = 80 };
#define CMDBUFLEN 2048
typedef struct cli_session
{

File diff suppressed because it is too large Load Diff