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]; ...@@ -88,7 +88,7 @@ static unsigned short state_table[3][256];
static int r_print( dcli_sChannel *chn, char *format, ...) static int r_print( dcli_sChannel *chn, char *format, ...)
{ {
char buff[200]; char buff[400];
int sts; int sts;
va_list ap; va_list ap;
int len; int len;
...@@ -346,7 +346,7 @@ static int dcli_recall_insert( dcli_sRecall *recall, ...@@ -346,7 +346,7 @@ static int dcli_recall_insert( dcli_sRecall *recall,
recall->last_command++; recall->last_command++;
if ( recall->last_command >= DCLI_RECALL_MAX) if ( recall->last_command >= DCLI_RECALL_MAX)
recall->last_command = 0; 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) if ( recall->first_command == recall->last_command)
recall->first_command++; recall->first_command++;
if ( recall->first_command > DCLI_RECALL_MAX) if ( recall->first_command > DCLI_RECALL_MAX)
...@@ -462,10 +462,10 @@ int dcli_get_input_string( dcli_sChannel *chn, ...@@ -462,10 +462,10 @@ int dcli_get_input_string( dcli_sChannel *chn,
void *timeout_arg, void *timeout_arg,
const char *prompt) const char *prompt)
{ {
char input_str[200]; char input_str[400];
char out_str[200]; char out_str[400];
char dum_str[200]; char dum_str[400];
int maxlen = 199; int maxlen = 399;
unsigned long terminator; unsigned long terminator;
int index; int index;
int recall_index = 0; int recall_index = 0;
...@@ -826,4 +826,4 @@ int dcli_qio_write( dcli_sChannel *chn, int tmo, char *buf, int len) ...@@ -826,4 +826,4 @@ int dcli_qio_write( dcli_sChannel *chn, int tmo, char *buf, int len)
write( *(int *)chn, buf, len); write( *(int *)chn, buf, len);
return 1; return 1;
} }
#endif #endif
\ No newline at end of file
...@@ -56,7 +56,7 @@ extern "C" { ...@@ -56,7 +56,7 @@ extern "C" {
typedef struct { typedef struct {
int first_command; int first_command;
int last_command; int last_command;
char command[DCLI_RECALL_MAX][200]; char command[DCLI_RECALL_MAX][400];
} dcli_sRecall; } dcli_sRecall;
typedef int dcli_sChannel; typedef int dcli_sChannel;
...@@ -89,4 +89,4 @@ int dcli_qio_write( dcli_sChannel *chn, int tmo, char *buf, int len); ...@@ -89,4 +89,4 @@ int dcli_qio_write( dcli_sChannel *chn, int tmo, char *buf, int len);
} }
#endif #endif
#endif #endif
\ No newline at end of file
...@@ -171,7 +171,7 @@ GNU General Public License for more details.\n\n"; ...@@ -171,7 +171,7 @@ GNU General Public License for more details.\n\n";
if ( str[0] != 0) { if ( str[0] != 0) {
int nr; int nr;
char cmd_array[10][200]; char cmd_array[10][400];
dcli_remove_blank( str, str); dcli_remove_blank( str, str);
nr = dcli_parse( str, ";", "", (char *)cmd_array, nr = dcli_parse( str, ";", "", (char *)cmd_array,
...@@ -215,4 +215,4 @@ GNU General Public License for more details.\n\n"; ...@@ -215,4 +215,4 @@ GNU General Public License for more details.\n\n";
} }
dcli_input_end( &cmd->chn, cmd->recall_buf); 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