Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
713a4d82
Commit
713a4d82
authored
7 years ago
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb, increased size of command strings
parent
8f318dbc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
src/lib/co/src/co_dcli_input.c
src/lib/co/src/co_dcli_input.c
+7
-7
src/lib/co/src/co_dcli_input.h
src/lib/co/src/co_dcli_input.h
+2
-2
wb/exe/wb_cmd/gtk/wb_cmd_gtk.cpp
wb/exe/wb_cmd/gtk/wb_cmd_gtk.cpp
+2
-2
No files found.
src/lib/co/src/co_dcli_input.c
View file @
713a4d82
...
@@ -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
[
2
00
];
char
buff
[
4
00
];
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
,
2
00
);
strncpy
(
&
(
recall
->
command
[
recall
->
last_command
][
0
]),
command
,
4
00
);
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
[
2
00
];
char
input_str
[
4
00
];
char
out_str
[
2
00
];
char
out_str
[
4
00
];
char
dum_str
[
2
00
];
char
dum_str
[
4
00
];
int
maxlen
=
1
99
;
int
maxlen
=
3
99
;
unsigned
long
terminator
;
unsigned
long
terminator
;
int
index
;
int
index
;
int
recall_index
=
0
;
int
recall_index
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/lib/co/src/co_dcli_input.h
View file @
713a4d82
...
@@ -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
][
2
00
];
char
command
[
DCLI_RECALL_MAX
][
4
00
];
}
dcli_sRecall
;
}
dcli_sRecall
;
typedef
int
dcli_sChannel
;
typedef
int
dcli_sChannel
;
...
...
This diff is collapsed.
Click to expand it.
wb/exe/wb_cmd/gtk/wb_cmd_gtk.cpp
View file @
713a4d82
...
@@ -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
][
2
00
];
char
cmd_array
[
10
][
4
00
];
dcli_remove_blank
(
str
,
str
);
dcli_remove_blank
(
str
,
str
);
nr
=
dcli_parse
(
str
,
";"
,
""
,
(
char
*
)
cmd_array
,
nr
=
dcli_parse
(
str
,
";"
,
""
,
(
char
*
)
cmd_array
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment