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
Oct 11, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb, increased size of command strings
parent
8f318dbc
Changes
3
Hide 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];
static
int
r_print
(
dcli_sChannel
*
chn
,
char
*
format
,
...)
{
char
buff
[
2
00
];
char
buff
[
4
00
];
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
,
2
00
);
strncpy
(
&
(
recall
->
command
[
recall
->
last_command
][
0
]),
command
,
4
00
);
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
[
2
00
];
char
out_str
[
2
00
];
char
dum_str
[
2
00
];
int
maxlen
=
1
99
;
char
input_str
[
4
00
];
char
out_str
[
4
00
];
char
dum_str
[
4
00
];
int
maxlen
=
3
99
;
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
src/lib/co/src/co_dcli_input.h
View file @
713a4d82
...
...
@@ -56,7 +56,7 @@ extern "C" {
typedef
struct
{
int
first_command
;
int
last_command
;
char
command
[
DCLI_RECALL_MAX
][
2
00
];
char
command
[
DCLI_RECALL_MAX
][
4
00
];
}
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
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";
if
(
str
[
0
]
!=
0
)
{
int
nr
;
char
cmd_array
[
10
][
2
00
];
char
cmd_array
[
10
][
4
00
];
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
}
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