Commit 713a4d82 authored by Claes Sjofors's avatar Claes Sjofors

Wb, increased size of command strings

parent 8f318dbc
......@@ -88,7 +88,7 @@ static unsigned short state_table[3][256];
static int r_print( dcli_sChannel *chn, char *format, ...)
{
char buff[200];
char buff[400];
int sts;
va_list ap;
int len;
......@@ -346,7 +346,7 @@ static int dcli_recall_insert( dcli_sRecall *recall,
recall->last_command++;
if ( recall->last_command >= DCLI_RECALL_MAX)
recall->last_command = 0;
strncpy( &(recall->command[recall->last_command][0]), command, 200);
strncpy( &(recall->command[recall->last_command][0]), command, 400);
if ( recall->first_command == recall->last_command)
recall->first_command++;
if ( recall->first_command > DCLI_RECALL_MAX)
......@@ -462,10 +462,10 @@ int dcli_get_input_string( dcli_sChannel *chn,
void *timeout_arg,
const char *prompt)
{
char input_str[200];
char out_str[200];
char dum_str[200];
int maxlen = 199;
char input_str[400];
char out_str[400];
char dum_str[400];
int maxlen = 399;
unsigned long terminator;
int index;
int recall_index = 0;
......@@ -826,4 +826,4 @@ int dcli_qio_write( dcli_sChannel *chn, int tmo, char *buf, int len)
write( *(int *)chn, buf, len);
return 1;
}
#endif
\ No newline at end of file
#endif
......@@ -56,7 +56,7 @@ extern "C" {
typedef struct {
int first_command;
int last_command;
char command[DCLI_RECALL_MAX][200];
char command[DCLI_RECALL_MAX][400];
} dcli_sRecall;
typedef int dcli_sChannel;
......@@ -89,4 +89,4 @@ int dcli_qio_write( dcli_sChannel *chn, int tmo, char *buf, int len);
}
#endif
#endif
\ No newline at end of file
#endif
......@@ -171,7 +171,7 @@ GNU General Public License for more details.\n\n";
if ( str[0] != 0) {
int nr;
char cmd_array[10][200];
char cmd_array[10][400];
dcli_remove_blank( str, str);
nr = dcli_parse( str, ";", "", (char *)cmd_array,
......@@ -215,4 +215,4 @@ GNU General Public License for more details.\n\n";
}
dcli_input_end( &cmd->chn, cmd->recall_buf);
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment