Skip to content
Snippets Groups Projects
Commit c870aaf1 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

utils: fix command completition check

parent 57298f92
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -210,7 +210,7 @@ void lookup_list(lookup_t *lookup)
size_t len;
const char *key = trie_it_key(lookup->iter.it, &len);
if (memcmp(key, lookup->iter.first_key, len) == 0) {
if (strncmp(key, lookup->iter.first_key, len) == 0) {
int ret = set_key(lookup, &lookup->found.key, key, len);
if (ret == KNOT_EOK) {
lookup->found.data = *trie_it_val(lookup->iter.it);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment