Skip to content
Snippets Groups Projects
Commit 8396fe36 authored by Pavel Tvrdík's avatar Pavel Tvrdík
Browse files

Fix string handling in inputs completing in birdc

Thanks to Martin Mares for notice
parent e547061f
No related merge requests found
......@@ -195,7 +195,7 @@ cmd_find_common_match(struct cmd_node *root, char *cmd, int len, int *pcount, ch
(*pcount)++;
if (best < 0)
{
strncpy(buf, m->token + len, BIRDC_INPUT_COMPLETE_BUFFER_LEN);
strlcpy(buf, m->token + len, BIRDC_INPUT_COMPLETE_BUFFER_LEN);
best = m->len - len;
best_prio = m->prio;
}
......
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