Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
8396fe36
Commit
8396fe36
authored
Nov 02, 2015
by
Pavel Tvrdík
Browse files
Fix string handling in inputs completing in birdc
Thanks to Martin Mares for notice
parent
e547061f
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/commands.c
View file @
8396fe36
...
...
@@ -195,7 +195,7 @@ cmd_find_common_match(struct cmd_node *root, char *cmd, int len, int *pcount, ch
(
*
pcount
)
++
;
if
(
best
<
0
)
{
str
n
cpy
(
buf
,
m
->
token
+
len
,
BIRDC_INPUT_COMPLETE_BUFFER_LEN
);
str
l
cpy
(
buf
,
m
->
token
+
len
,
BIRDC_INPUT_COMPLETE_BUFFER_LEN
);
best
=
m
->
len
-
len
;
best_prio
=
m
->
prio
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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